/* auth.css - Shared authentication styles */

/* Base styling */
.auth-page {
    background-color: var(--survsync-bg);
    min-height: 100vh;
}

.auth-form-wrapper {
    max-width: 480px;
    width: 100%;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: var(--survsync-shadow-md);
}

/* Form and input styling */
.input-group-text {
    border: none;
    background-color: var(--survsync-bg);
}

.form-control {
    border: 1px solid var(--survsync-border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--survsync-primary);
    box-shadow: 0 0 0 0.25rem var(--survsync-card-shadow);
}

/* Text and typography */
.welcome-section h3 {
    color: var(--survsync-primary);
    font-size: 1.75rem;
}

/* Button styling - auth-specific button traits only */
.btn-login,
.btn-signup,
.btn-create-account {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Background and overlay styling */
.auth-bg {
    background: url('/static/admin/images/login-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
}

.auth-overlay {
    background: linear-gradient(135deg,
            var(--survsync-overlay-dark),
            var(--survsync-overlay-light));
    min-height: 100vh;
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding-left: 0.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

/* Badge styling - auth-specific traits only */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

/* Hover effects */
a {
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
}

.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Form check styling */
.form-check-input {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .auth-bg {
        min-height: 320px;
    }

    .auth-overlay {
        min-height: 320px;
        border-radius: 0 0 12px 12px;
    }

    .auth-form-wrapper {
        margin: 2rem 0;
    }

    .row.flex-grow {
        flex-direction: column-reverse;
    }

    .feature-list li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .auth-header h4 {
        font-size: 1.25rem;
    }
}

/* Login-specific styling */
.login-page {
    background-color: var(--survsync-bg);
}

/* Fix for background image and overlay */
.login-bg {
    background-color: var(--survsync-primary);
    /* Fallback color */
    background-image: url('/static/admin/images/login-bg.jpg') !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    height: 100% !important;
    min-height: 100vh !important;
}

.login-overlay {
    background: linear-gradient(135deg,
            rgba(93, 79, 159, 0.85),
            /* Darker purple with opacity */
            rgba(103, 196, 180, 0.85)
            /* Teal with opacity */
        ) !important;
    height: 100% !important;
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .login-bg {
        min-height: 40vh !important;
        /* Shorter on mobile */
    }
}

/* Divider styling for login page */
.divider {
    width: 100%;
}

.divider-line {
    height: 1px;
    background-color: var(--survsync-border);
}

/* Social auth buttons */
.social-auth-buttons .btn {
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.social-auth-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Register-specific styling */
.register-page {
    background-color: var(--survsync-bg);
}

/* Fix for registration background image and overlay */
.register-bg {
    background-color: var(--survsync-primary);
    /* Fallback color */
    background-image: url('/static/admin/images/register-bg.jpg') !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    height: 100% !important;
    min-height: 100vh !important;
}

.register-overlay {
    background: linear-gradient(135deg,
            rgba(103, 196, 180, 0.85),
            /* Teal with opacity */
            rgba(93, 79, 159, 0.85)
            /* Darker purple with opacity - reversed for variation */
        ) !important;
    height: 100% !important;
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .register-bg {
        min-height: 40vh !important;
        /* Shorter on mobile */
    }
}

/* Password strength indicator */
.password-strength {
    font-size: 0.8rem;
}

/* Terms Modal Styles */
.terms-content,
.terms-scroll-content {
    height: 50vh;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.terms-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--survsync-border);
}

.terms-scroll-content h2,
.section-title {
    color: var(--survsync-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.terms-scroll-content p {
    margin-bottom: 1rem;
}

/* Scrollbar styling */
.terms-content::-webkit-scrollbar-track,
.terms-scroll-content::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.terms-content::-webkit-scrollbar,
.terms-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-thumb,
.terms-scroll-content::-webkit-scrollbar-thumb {
    background-color: var(--survsync-primary);
    border-radius: 10px;
}

/* Button styling */
#acceptTermsBtn.btn-ready {
    background-color: var(--survsync-success);
    border-color: var(--survsync-success);
    box-shadow: 0 2px 5px rgba(25, 135, 84, 0.3);
}

#acceptTermsBtn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.terms-scroll-notice {
    color: var(--survsync-text-light);
    font-style: italic;
}


/* Styles for the logout page */
.logout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f7fc;
}

.logout-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}
.logo {
    margin-bottom: 1.5rem;
}
.logo img {
    max-height: 60px;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #7A6BC4;
}
h2 {
    color: #5D4F9F;
    margin-bottom: 1rem;
}
.message {
    margin-bottom: 2rem;
    color: #6c757d;
}