:root {
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --primary-color: #0f172a;
    --primary-hover: #1e293b;
    --input-focus: #0f172a;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #f8fafc 70%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 400px;

    background: var(--card-bg);
    border-radius: 12px;

    box-shadow:
        0 0 0 1px rgba(0,0,0,0.03),
        0 1px 3px rgba(0,0,0,0.05),
        0 12px 40px -8px rgba(0,0,0,0.08);

    padding: 40px 32px;
    transition: transform 0.2s ease;
}

.card-header-logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-wrapper svg {
    height: 36px;
    width: auto;
    max-width: 100%;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 5px;
}

.auth-input {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;

    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;

    color: var(--text-main);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
    outline: none;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.btn-login {
    width: 100%;
    height: 36px;
    margin-top: 20px;

    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;

    font-size: 13px;
    font-weight: 500;

    color: #ffffff !important;
    text-decoration: none !important;

    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);

    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-login:active,
.btn-login:focus,
.btn-login:visited {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(0);
    box-shadow: none !important;
    outline: none !important;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2px;
}

.form-footer a, #back-to-login {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.form-footer a:hover, #back-to-login:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-back {
    margin-top: 12px;
    width: 100%;
    color: var(--text-muted);
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.card-footer-text {
    margin-top: 32px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

.card-footer-text a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .logo-wrapper svg {
        height: 32px;
    }
}