
.auth-page {
    --brand-start: #0b5cf1;
    --brand-end: #0082fb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 38%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, var(--brand-start) 0%, var(--brand-end) 100%);
    color: #0f172a;
}

.auth-container {
    width: min(480px, 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-name {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.auth-logo {
    width: 140px;
    height: auto;
    display: block;
}

.auth-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    text-align: center;
}

.auth-subtitle {
    margin: 6px 0 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
}

.form-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    color: #0f172a;
    font-size: 1rem;
    transition: all 0.25s ease;
    outline: none;
}

.form-group input:focus {
    border-color: rgba(0, 130, 251, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 130, 251, 0.18);
    background: #ffffff;
}

.form-group input::placeholder {
    color: rgba(99, 115, 129, 0.8);
}

.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #334155;
}

.form-links a {
    color: #0b5cf1;
    font-weight: 600;
    text-decoration: none;
}

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

.form-error {
    color: var(--negative);
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.form-info {
    background: rgba(16, 185, 129, 0.12);
    color: #0f5132;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.95rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #0f172a;
}

.checkbox-row input {
    margin-right: 8px;
}

.auth-note {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 18px 40px rgba(11, 92, 241, 0.35);
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-auth:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

.btn-auth:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-loader svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
    animation: rotate 1s linear infinite;
}

.btn-loader circle {
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
}

@media (max-width: 540px) {
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }
}

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