/* Login Page Specific Styles */
body.login-page {
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    width: 100%;
    max-width: 420px;
    padding: 50px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.4s ease;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.login-form .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.login-form .input-wrapper {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
    z-index: 2;
}

.login-form .input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(108, 93, 211, 0.1);
    transform: translateY(-1px);
}

.login-form input {
    width: 100%;
    background: transparent !important;
    border: none;
    border-radius: 4px;
    padding: 14px 15px 14px 45px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

/* Ensure Chrome autofill doesn't ruin the rounded corners and colors */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus,
.login-form input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #242232 inset !important;
    border-radius: 4px !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-form input::placeholder {
    color: #666;
}

.form-extras {
    display: flex;
    justify-content: flex-end;
    /* Or space-between if adding 'Remember me' */
    margin-bottom: 30px;
}

.forgot-password {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 4px;
    background: var(--gradient-1);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(108, 93, 211, 0.4);
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(108, 93, 211, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* --- PREMIUM CONFIRM MODAL --- */
.premium-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.premium-confirm-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.premium-confirm-overlay.show .premium-confirm-modal {
    transform: scale(1);
}

.confirm-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.premium-confirm-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.premium-confirm-modal p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 28px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.btn-confirm-action {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-confirm-action.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.btn-confirm-action.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-confirm-action.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-confirm-action.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* ========================================================================= */
/* --- LIGHT MODE REWRITES FOR LOGIN PAGE --- */
/* ========================================================================= */
[data-theme="light"] .login-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px rgba(108, 93, 211, 0.15);
}

[data-theme="light"] .login-form .input-wrapper {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .login-form .input-wrapper i {
    color: #6c757d;
}

[data-theme="light"] .login-form .input-wrapper:focus-within {
    background: #fff;
    border-color: var(--primary-color);
}

[data-theme="light"] .login-form input {
    color: var(--text-primary) !important;
}

[data-theme="light"] .login-form input::placeholder {
    color: #adb5bd;
}

[data-theme="light"] .login-form input:-webkit-autofill,
[data-theme="light"] .login-form input:-webkit-autofill:hover,
[data-theme="light"] .login-form input:-webkit-autofill:focus,
[data-theme="light"] .login-form input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
}

[data-theme="light"] .forgot-password {
    color: #6c757d;
}

[data-theme="light"] .forgot-password:hover {
    color: var(--primary-color);
}

[data-theme="light"] .btn-login {
    background: var(--primary-color);
    box-shadow: 0 8px 25px rgba(108, 93, 211, 0.3);
}

[data-theme="light"] .premium-confirm-modal {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .premium-confirm-modal h3 {
    color: var(--text-primary);
}

[data-theme="light"] .premium-confirm-modal p {
    color: var(--text-secondary);
}

[data-theme="light"] .btn-confirm-action.secondary {
    background: #f1f3f5;
    color: #495057;
}

[data-theme="light"] .btn-confirm-action.secondary:hover {
    background: #e9ecef;
    color: #212529;
}