/* Login Page Styles */
@import url('home.css');
@import url('components.css');

.main-content {
    padding: 16px;
    padding-bottom: 120px;
}

/* Auth Buttons */
.header .balance-btn {
    display: none !important;
    /* Hide balance on login page */
}



/* Login/Register View */
.login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 28px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.login-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-logo span {
    color: var(--purple);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Google Login Button */
.btn-google {
    width: 100%;
    padding: 14px;
    background: var(--bg-card-solid);
    border: 2px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.btn-google:hover {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-google img {
    width: 24px;
    height: 24px;
}

.btn-google span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group label i {
    color: var(--purple);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-card-solid);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px var(--purple-glow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--purple-glow);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.register-link a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

/* Spin animation */
.ri-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Light Mode Premium Overrides */
[data-theme="light"] .login-card {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.04);
    box-shadow: 0 25px 80px rgba(17, 24, 39, 0.1);
}

[data-theme="light"] .login-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
}

[data-theme="light"] .login-logo {
    color: #111827;
}

[data-theme="light"] .login-header p {
    color: #374151;
}

[data-theme="light"] .form-group input {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #111827;
}

[data-theme="light"] .form-group input:focus {
    background: #ffffff;
    border-color: #8b5cf6;
}

[data-theme="light"] .btn-google {
    background: #ffffff;
    border-color: #E2E8F0;
}

[data-theme="light"] .btn-google:hover {
    background: #F8FAFC;
    border-color: #8b5cf6;
}

[data-theme="light"] .divider {
    color: #9CA3AF;
}

[data-theme="light"] .divider::before,
[data-theme="light"] .divider::after {
    background: #E2E8F0;
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.success-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    width: 320px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.popup-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
}

.popup-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--success);
    animation: scaleCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, white, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-content p {
    color: var(--text-muted);
}

@keyframes scaleCheck {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

[data-theme="light"] .popup-content h2 {
    background: linear-gradient(135deg, #111827, #4b5563);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}