/* ============================================
   LOGIN & SIGNUP PAGE STYLES
   Responsive, Accessible, Modern Design
   ============================================ */

/* 1. PAGE BASE */
.login-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.login-page-loading {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(194, 24, 91, 0.1);
    border-top-color: #c2185b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-page-main {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-page-main.loaded {
    opacity: 1;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: #c2185b;
    color: white;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* 2. HEADER */
.login-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.login-header .nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #333;
}

.brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: #c2185b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    background: rgba(194,24,91,0.05);
    color: #c2185b;
}

.header-auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-login {
    background: #c2185b;
    color: white;
}

.btn-login:hover {
    background: #a01549;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194,24,91,0.3);
}

.btn-login.active {
    background: white;
    color: #c2185b;
    border-color: #c2185b;
}

.btn-signup {
    background: transparent;
    color: #c2185b;
    border-color: rgba(194,24,91,0.3);
}

.btn-signup:hover {
    background: rgba(194,24,91,0.1);
    border-color: #c2185b;
}

.btn-signup.active {
    background: #c2185b;
    color: white;
    border-color: #c2185b;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 3. HERO SECTION */
.login-hero {
    background: linear-gradient(135deg, rgba(194,24,91,0.08), rgba(194,24,91,0.02));
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #333;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #333;
}

.feature i {
    color: #c2185b;
    font-size: 1.25rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.animated-logo {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.05), rgba(194, 24, 91, 0.15));
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(194, 24, 91, 0.15);
    border: 3px solid rgba(194, 24, 91, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-logo-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(194, 24, 91, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #c2185b;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 4. LOGIN SECTION */
.login-section {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* 5. FORM CARD */
.login-form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #333;
}

.form-subtitle {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* 6. SOCIAL LOGIN */
.social-login {
    margin-bottom: 2rem;
}

.social-login-label {
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-btn.google:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 7. FORM ELEMENTS */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #e53e3e;
}

.input-with-icon, .select-with-icon {
    position: relative;
}

.input-with-icon i, .select-with-icon i:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.25rem;
}

.input-with-icon input, .select-with-icon select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.select-with-icon select {
    appearance: none;
    padding-right: 3rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c2185b;
    box-shadow: 0 0 0 3px rgba(194,24,91,0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #c2185b;
}

.form-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* 8. PASSWORD STRENGTH */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

/* 9. FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #c2185b;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.forgot-password {
    color: #c2185b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 10. FORM ACTIONS */
.form-actions {
    margin-bottom: 1.5rem;
}

.btn-login-submit {
    width: 100%;
    padding: 1rem;
    background: #c2185b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login-submit:hover {
    background: #a01549;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194,24,91,0.3);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 11. FORM FOOTER */
.form-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.signup-link {
    color: #c2185b;
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}

/* 12. SUCCESS STATE */
.login-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.success-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2f855a;
    font-size: 1.5rem;
}

.info-video,
.feature-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #000;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

.info-header .info-video {
    margin-top: 1rem;
}

.feature-content .feature-video {
    margin: 0.5rem 0 0.75rem;
}

.loading-spinner-small {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(76,175,80,0.1);
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 13. INFO CARD */
.login-info-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

.info-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.info-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(194,24,91,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c2185b;
}

.feature-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.info-role-guide, .info-security {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.role-card {
    background: rgba(194,24,91,0.05);
    border: 1px solid rgba(194,24,91,0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.role-card:hover {
    background: rgba(194,24,91,0.1);
    transform: translateY(-2px);
}

.role-card i {
    font-size: 1.5rem;
    color: #c2185b;
    display: block;
    margin-bottom: 0.5rem;
}

.security-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.security-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.security-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* 14. TRUST SECTION */
.trust-section {
    padding: 2rem 1.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
}

.trust-badge i {
    font-size: 1.5rem;
    color: #c2185b;
}

.trust-badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* 15. HELP SECTION */
.help-section {
    padding: 0 1.5rem 3rem;
}

.help-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(194,24,91,0.1), rgba(194,24,91,0.05));
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    border: 2px solid rgba(194,24,91,0.1);
}

.help-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #c2185b;
    box-shadow: 0 5px 20px rgba(194,24,91,0.2);
}

.help-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-help {
    padding: 0.75rem 1.5rem;
    background: #c2185b;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-help:hover {
    background: #a01549;
    transform: translateY(-2px);
}

.btn-help.secondary {
    background: white;
    color: #c2185b;
    border: 2px solid #c2185b;
}

.btn-help.outline {
    background: transparent;
    color: #c2185b;
    border: 2px solid rgba(194,24,91,0.3);
}



.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #c2185b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-info strong {
    display: block;
    font-size: 1rem;
}

.brand-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* 17. UTILITIES */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* 18. RESPONSIVE */
@media (max-width: 1024px) {
    .hero-container, .login-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .role-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .header-auth-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-login, .btn-signup {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .animated-logo {
        width: 200px;
        height: 200px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .help-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }
    
    .help-icon {
        margin: 0 auto;
    }
    
    .help-actions {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-form-card, .login-info-card {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}
:root {
    /* Light Mode (Default) */
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-muted: #666666;
    --border-color: rgba(0,0,0,0.1);
    --brand-primary: #c2185b;
}

[data-theme="dark"] {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: rgba(255,255,255,0.1);
    --brand-primary: #e91e63; /* Slightly brighter for dark contrast */
}