.auth-container {
    --motion-fast: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
    --motion-soft: 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
    --text-body: 15px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background:
        radial-gradient(circle at 84% -12%, rgba(122, 210, 255, 0.24), transparent 38%),
        radial-gradient(circle at 8% 26%, rgba(43, 109, 233, 0.1), transparent 34%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3fb 100%);
}

.auth-box {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(43, 109, 233, 0.14);
    box-shadow: 0 18px 40px rgba(14, 34, 66, 0.14);
    padding: 34px 30px 28px;
    backdrop-filter: blur(4px);
    animation: auth-rise 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.auth-box h2 {
    margin-bottom: 22px;
    text-align: center;
    font-size: 32px;
    line-height: 1.1;
    color: #103562;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
    color: #2f4058;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(43, 109, 233, 0.22);
    background: #ffffff;
    font-size: var(--text-body);
    line-height: 1.4;
    color: #1f2f45;
    transition:
        border-color var(--motion-fast),
        box-shadow var(--motion-fast),
        transform var(--motion-fast);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(43, 109, 233, 0.46);
    box-shadow: 0 0 0 0.2rem rgba(43, 109, 233, 0.15);
}

.btn-primary {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: linear-gradient(140deg, #2b6de9 0%, #1e5fd9 100%);
    box-shadow: 0 12px 24px rgba(15, 43, 85, 0.22);
    transition:
        transform var(--motion-fast),
        box-shadow var(--motion-fast),
        background-color var(--motion-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(140deg, #255fcb 0%, #184fbe 100%);
    box-shadow: 0 16px 28px rgba(15, 43, 85, 0.28);
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #60728e;
}

.auth-links a {
    color: #2b6de9;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error-message {
    margin-top: 14px;
    color: #cf2f34;
    font-size: 14px;
    text-align: center;
    display: none;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-box {
        animation: none;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 24px 12px;
    }

    .auth-box {
        border-radius: 20px;
        padding: 30px 22px 24px;
    }

    .auth-box h2 {
        font-size: 29px;
        margin-bottom: 18px;
    }

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

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

    .auth-box {
        border-radius: 20px;
        padding: 30px 20px 22px;
    }

    .auth-box h2 {
        font-size: 28px;
    }

    .form-group input {
        font-size: 14px;
        padding: 11px 12px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 11px 14px;
    }

    .auth-links {
        font-size: 13px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-primary:active {
        transform: translateY(1px) scale(0.988);
        box-shadow: 0 9px 18px rgba(15, 43, 85, 0.2);
    }

    .form-group input:focus {
        transform: translateY(-1px);
    }
}
