/* AH Private Batch - Premium Login CSS */
:root {
    --premium-primary: #6366f1;
    --premium-primary-dark: #4f46e5;
    --premium-secondary: #ec4899;
    --premium-accent: #8b5cf6;
    --premium-bg-light: #f8fafc;
    --premium-bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --text-main: #1e293b;
    --text-main-dark: #f8fafc;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
    --glass-bg: var(--glass-bg-dark);
    --glass-border: var(--glass-border-dark);
    --text-main: var(--text-main-dark);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--premium-bg-light);
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

[data-theme="dark"] body {
    background: var(--premium-bg-dark);
}

/* ===== ANIMATED SCIENTIFIC BACKGROUND ===== */
.science-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87ceeb 0%, #4682b4 25%, #6495ed 50%, #00bfff 75%, #1e90ff 100%);
    background-size: 400% 400%;
    animation: scientificGradient 20s ease infinite;
    z-index: -3;
}

[data-theme="dark"] .science-bg {
    background: linear-gradient(135deg, #0f3460 0%, #0c2461 25%, #1e3799 50%, #2c5aa0 75%, #40739e 100%);
}

@keyframes scientificGradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Scientific Formulas */
.formulas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.formula {
    position: absolute;
    color: rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
    font-weight: 500;
    animation: floatFormula 25s linear infinite;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .formula {
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

@keyframes floatFormula {
    0% {
        transform: translateY(100vh) translateX(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Dynamic Background Circles */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--premium-primary), var(--premium-accent));
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: linear-gradient(135deg, var(--premium-secondary), var(--premium-primary));
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    animation-duration: 25s;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(100px, 50px) rotate(360deg);
    }
}

/* Glass Card */
.glass-container {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header & Logo */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: white;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #64748b;
}

/* Tabs */
.tabs-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--premium-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--premium-primary);
    color: white;
}

/* Form Styles */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 44px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

[data-theme="dark"] .form-input {
    background: rgba(0, 0, 0, 0.2);
}

.form-input:focus {
    outline: none;
    border-color: var(--premium-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .form-input:focus {
    background: rgba(0, 0, 0, 0.3);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    border: none;
    background: transparent;
}

/* Buttons */
.btn-premium {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--premium-primary), var(--premium-primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-premium i {
    font-size: 18px;
}

/* Password Strength & Requirements */
.password-strength {
    margin-top: 8px;
    margin-bottom: 12px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

[data-theme="dark"] .strength-bar {
    background: rgba(255, 255, 255, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: #22c55e;
}

.strength-text {
    font-size: 12px;
    color: #64748b;
}

.password-requirements {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

[data-theme="dark"] .password-requirements {
    background: rgba(255, 255, 255, 0.03);
}

.requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.requirement.valid {
    color: #22c55e;
}

.req-icon {
    font-size: 12px;
}

/* Footer Links */
.footer-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.footer-links a {
    color: var(--premium-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Premium Modal */
.premium-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.premium-modal-overlay.active {
    display: flex;
}

.premium-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: popIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

[data-theme="dark"] .premium-modal {
    background: var(--premium-bg-dark);
    border: 1px solid var(--glass-border);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.modal-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.modal-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.premium-modal h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.premium-modal p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

/* Form Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 20px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

[data-theme="dark"] .checkbox-text {
    color: #94a3b8;
}

.terms-link,
.privacy-link {
    color: var(--premium-primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

.modal-btn {
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: var(--premium-primary);
    color: white;
}

/* Loading Spinner */
.loading-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.dot-2 {
    animation-delay: 0.2s;
}

.dot-3 {
    animation-delay: 0.4s;
}

@keyframes bounce {
    to {
        transform: translateY(-6px);
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 24px;
    }
}