﻿body {
    background: var(--bg-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    color: var(--text-primary) !important;
}

.container-auth:before {
    display: none !important;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.auth-nav-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.limiter {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.container-auth {
    position: relative;
    z-index: 1;
    background: transparent !important;
    padding: 2rem 1rem;
    min-height: auto !important;
}

.wrap-auth {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 128, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 80px rgba(0, 128, 255, 0.15) !important;
}

/* Override text colors for auth form - Dark Theme */
body[data-theme="dark"] .wrap-auth h3,
body[data-theme="dark"] .wrap-auth h4,
body[data-theme="dark"] .wrap-auth .brand {
    color: #ffffff !important;
}

body[data-theme="dark"] .wrap-auth h4 {
    color: #c5d1e6 !important;
}

body[data-theme="dark"] .wrap-auth .txt2,
body[data-theme="dark"] .wrap-auth a {
    /*color: #c5d1e6 !important;*/
}

    body[data-theme="dark"] .wrap-auth a:hover {
        /*color: #0080FF !important;*/
    }

body[data-theme="dark"] .wrap-auth .input100 {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    body[data-theme="dark"] .wrap-auth .input100::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

body[data-theme="dark"] .wrap-auth .symbol-input100 {
    color: rgba(255, 255, 255, 0.6) !important;
}

body[data-theme="dark"] .wrap-auth .input100:focus + .focus-input100 + .symbol-input100 {
    color: #0080FF !important;
}

body[data-theme="dark"] .wrap-auth .showPassword {
    color: rgba(255, 255, 255, 0.6) !important;
}

    body[data-theme="dark"] .wrap-auth .showPassword:hover {
        color: #0080FF !important;
    }

body[data-theme="dark"] .wrap-auth .alert {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #ff6b6b !important;
}

body[data-theme="dark"] .wrap-auth p {
    color: #c5d1e6 !important;
}

/* Light Theme overrides */
body[data-theme="light"] .wrap-auth {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 128, 255, 0.15);
}

    body[data-theme="light"] .wrap-auth h3,
    body[data-theme="light"] .wrap-auth h4 {
        color: #0f172a !important;
    }

    body[data-theme="light"] .wrap-auth .input100 {
        background: #F1F3F4 !important;
        color: #333333 !important;
    }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


footer {
    flex-shrink: 0;
    background: rgba(18, 23, 33, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 128, 255, 0.1);
    padding: 2rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Light theme footer */
body[data-theme="light"] footer {
    background: rgba(248, 250, 252, 0.9) !important;
    border-top: 1px solid rgba(0, 128, 255, 0.15);
}

body[data-theme="light"] .footer-links a,
body[data-theme="light"] .copyright {
    color: #475569 !important;
}

    body[data-theme="light"] .footer-links a:hover {
        color: #0080FF !important;
    }

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    width: 140px;
    height: 40px;
}

    .footer-logo img {
        filter: drop-shadow(0 2px 8px rgba(0, 128, 255, 0.3));
    }

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 13px;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--accent-cyan);
        }

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
}

body[data-theme="light"] .copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
    }

    .page-wrapper {
        height: auto;
        min-height: 100vh;
    }

    nav {
        padding: 1rem 0;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    footer {
        padding: 1.5rem 0 1rem;
    }
}

@media (min-height: 900px) {
    .container-auth {
        padding: 3rem 1rem;
    }
}
