/**
 * turocraft.com - Login Stylesheet
 */

:root {
    --dark-bg: #1a1a2e;
    --accent: #e94560;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.login {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login__card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login__header {
    text-align: center;
    margin-bottom: 28px;
}

.login__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
}

.login__title {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--dark-bg);
    letter-spacing: -0.5px;
}

.login__sub {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.login__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    text-align: center;
}

.login__field {
    margin-bottom: 16px;
}

.login__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.login__field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

.login__field input:focus {
    border-color: var(--dark-bg);
    background: #fff;
}

.login__btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--dark-bg);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.login__btn:hover { background: #2d2d4e; }

.login__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.login__btn--loading {
    background: #333;
}

.login__btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login__btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login__back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.login__back:hover { color: #555; }
