/* Login page container */
.auth-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 3rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    margin-top: 1rem;
}

.auth-section-decor {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1), transparent 35%);
    opacity: 0.9;
    pointer-events: none;
}

.auth-hero {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s ease both;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    line-height: 1.7;
}

.auth-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    animation: fadeInUp 0.6s ease both;
}

.highlight-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.85rem;
    color: #fff;
    font-size: 1.1rem;
}

.highlight-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.highlight-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(236, 244, 255, 0.94) 100%);
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 18px 45px rgba(20, 32, 67, 0.2), 0 10px 25px rgba(79, 124, 243, 0.08);
    backdrop-filter: blur(6px);
    animation: slideInUp 0.6s ease both 0.05s;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(80, 134, 245, 0.2), rgba(118, 75, 162, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(80, 134, 245, 0.2);
    animation: softPulse 8s ease-in-out infinite;
}

.auth-form label {
    font-size: 0.95rem;
}

.auth-input-group .input-group-text {
    background: #f4f6fb;
    border: 1px solid #e5e8f0;
    border-right: 0;
    color: #4f7cf3;
    align-items: center;
}

.auth-input {
    height: 3.2rem;
    border: 1px solid #e5e8f0;
    border-left: 0;
    box-shadow: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-input:focus {
    border-color: #4f7cf3;
    box-shadow: 0 0 0 0.15rem rgba(79, 124, 243, 0.2);
}

.auth-input-group .captcha-refresh {
    height: 3.2rem;
    border-left: 0;
    border-right: 0;
    padding: 0 0.9rem;
}

.auth-input-group .captcha-img {
    height: 3.2rem;
    width: 7.5rem;
    border-left: 0;
    background: #f4f6fb;
    object-fit: contain;
}

.custom-control-label {
    color: #4b5563;
}

.auth-form .btn-primary {
    height: 3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 15px 30px rgba(79, 124, 243, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .btn-primary:hover {
    box-shadow: 0 20px 40px rgba(79, 124, 243, 0.35);
    transform: translateY(-2px);
}

.auth-card .text-muted {
    color: #6b7280 !important;
}

.terms-card {
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 40px rgba(20, 32, 67, 0.12);
    animation: slideInUp 0.6s ease both 0.05s;
}

.terms-title {
    color: #1f2a44;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.terms-section {
    background: #f8fafc;
    border: 1px solid #e5e8f0;
    border-radius: 0.85rem;
    padding: 1.1rem 1.1rem 1rem;
}

.terms-section-title {
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 0.65rem;
}

.terms-list {
    padding-left: 1.1rem;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.terms-list li {
    color: #4b5563;
    line-height: 1.6;
}

.auth-highlights .highlight-item:nth-child(1) {
    animation-delay: 0.05s;
}

.auth-highlights .highlight-item:nth-child(2) {
    animation-delay: 0.12s;
}

.auth-highlights .highlight-item:nth-child(3) {
    animation-delay: 0.18s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
    .auth-section {
        padding: 2rem 1.25rem;
        border-radius: 1rem;
    }

    .auth-title {
        font-size: 1.9rem;
    }

    .auth-highlights {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.8rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-section {
        padding: 1.5rem 1.25rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-form .btn-primary {
        font-size: 1rem;
    }
}
