/* Securiti GPT - Login/Signup Theme */
:root {
    --shiny-cta-bg: #f1f5f9;
    --shiny-cta-fg: #111827;
    --shiny-cta-highlight: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #ffffff;
    color: var(--shiny-cta-fg);
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Close Button */
.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    color: #111827;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.24);
    transform: scale(1.1);
}

.close-btn:active {
    transform: scale(0.95);
}

.auth-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #f1f5f9 50%, #e9ecef 75%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Left Section - Hero Area */
.auth-hero {
    flex: 1;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-content {
    text-align: center;
    color: #111827;
    z-index: 2;
    padding: 2rem;
    max-width: 500px;
}

.hero-badge {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #374151 50%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.48);
    margin-bottom: 3rem;
}

.auth-hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

body.light-theme .auth-hero-desc {
    color: #000000;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.54);
}

.feature-item i {
    font-size: 1.2rem;
    color: #111827;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Right Section - Form Area */
.auth-form-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.14),
                inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    padding-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.36);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #111827;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #111827, #e0e0e0);
}

.tab-btn:hover {
    color: #111827;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.auth-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: rgba(0, 0, 0, 0.42);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.36);
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #000000 !important;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #111827;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
}

.input-wrapper input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.input-wrapper input:focus::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.36);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #111827;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.54);
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #111827;
    border-color: #111827;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.8rem;
}

.forgot-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #111827, #e0e0e0);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
    border-color: rgba(0, 0, 0, 0.3);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(37, 99, 235, 0.2);
}

.auth-divider span {
    background: rgba(0, 0, 0, 0.16);
    padding: 0 1rem;
    color: rgba(0, 0, 0, 0.36);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.54);
}

.social-btn:hover {
    border-color: #111827;
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    color: rgba(0, 0, 0, 0.36);
    font-size: 0.9rem;
}

.auth-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
    }

    .auth-hero {
        height: 40vh;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-features {
        display: none;
    }

    .auth-form-section {
        height: 60vh;
        padding: 0.5rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 15px;
        max-height: 55vh;
    }

    .auth-heading {
        font-size: 1.3rem;
    }

    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1rem;
        max-height: 50vh;
    }

    .auth-tabs {
        margin-bottom: 1rem;
    }

    .form-options {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 13, 0.8);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.auth-message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.auth-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.input-wrapper.no-icon input {
    padding-left: 1rem;
}

.reset-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.reset-progress .step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-progress .step.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.reset-progress .step-line {
    height: 2px;
    width: 50px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.reset-progress .step-line.active {
    background: #3b82f6;
}

.modal-content .input-wrapper input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-content .input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #3b82f6;
}

.modal-content .auth-subtitle {
    color: #cbd5e1;
}

.modal-content .form-group label {
    color: #cbd5e1;
}

/* Light Theme Modal Overrides */
body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-header h3 {
    color: #111827;
}

body.light-theme .close-modal {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #64748b;
}

body.light-theme .reset-progress .step {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

body.light-theme .reset-progress .step.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 0 10px rgba(17, 24, 39, 0.15);
}

body.light-theme .reset-progress .step-line {
    background: #e2e8f0;
}

body.light-theme .reset-progress .step-line.active {
    background: #111827;
}

body.light-theme .modal-content .input-wrapper input {
    background: #f8fafc !important;
    color: #000000 !important;
    border-color: rgba(37, 99, 235, 0.3);
}

body.light-theme .modal-content .input-wrapper input:focus {
    background: #ffffff !important;
    border-color: #111827;
}

body.light-theme .modal-content .auth-subtitle {
    color: rgba(0, 0, 0, 0.54);
}

body.light-theme .modal-content .form-group label {
    color: rgba(0, 0, 0, 0.54);
}

