/* 
    Ultra Premium Monochrome LiquidGlass (Dark 80% / White 20%)
    Design: Sleek, Minimalist, High-Contrast
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ffffff;
    --primary-dim: rgba(255, 255, 255, 0.7);
    --bg-dark: #080808;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.5);
}

body.login-page {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Enable vertical scroll */
    overflow-x: hidden;
}

/* Premium Minimalist Scrollbar */
body.login-page::-webkit-scrollbar {
    width: 6px;
}

body.login-page::-webkit-scrollbar-track {
    background: transparent;
}

body.login-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

body.login-page::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* Deep Solid Dark Background */
body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505; /* Pitch Dark */
    z-index: -1;
}


main.mobile-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* The 100% LiquidGlass Container (Login & Register) */
.login-container, .register-container {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(35px) saturate(150%);
    -webkit-backdrop-filter: blur(35px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 50px 40px;
    position: relative;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.register-container {
    max-width: 520px;
    padding: 40px 30px;
}


/* Glossy Shine Overlay */
.login-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.login-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    color: #fff;
}

.login-header p {
    color: var(--text-dim);
    font-size: 17px;
    font-weight: 300;
}

.login-form {
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px 22px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.login-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

/* Captcha - Monochrome Style */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.captcha-code {
    flex: 1;
    background: #ffffff;
    color: #000000;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 10px;
    border-radius: 18px;
}

.captcha-refresh {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Options */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-dim);
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forgot a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Buttons - Ultra Premium Monochrome */
.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-login {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.btn-register {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Checkbox Style */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

input[type="checkbox"]:checked:after {
    content: '\2714';
    position: absolute;
    top: 0px;
    left: 4px;
    color: black;
    font-size: 13px;
}

/* Popups */
.popup-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 30px;
}

/* --- Enhanced Mobile Responsiveness --- */
@media (max-width: 500px) {
    main.mobile-container {
        padding: 10px;
    }

    .login-container, .register-container {
        padding: 35px 20px;
        border-radius: 30px;
        margin: 10px 0;
    }

    .login-header h2 {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .login-header p {
        font-size: 15px;
    }

    .login-form input, .btn-login, .btn-register {
        padding: 15px 18px;
        font-size: 15px;
        border-radius: 16px;
    }

    .captcha-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 20px;
    }

    .captcha-code {
        width: 100%;
        height: 50px;
        font-size: 24px;
        letter-spacing: 8px;
    }

    .captcha-refresh {
        width: 100%;
        height: 45px;
        border-radius: 14px;
    }

    .input-group select {
        width: 80px !important;
        font-size: 14px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .login-container, .register-container {
        padding: 25px 15px;
    }

    .login-header h2 {
        font-size: 24px;
    }
}

/* =============================================================================
   LIGHT GLASS THEME - LOGIN & REGISTER
   ============================================================================= */
:root {
    --light-accent: #6e00ff;
    --light-accent-dark: #5700cc;
    --light-text: #172033;
    --light-text-dim: #526078;
    --light-glass: rgba(255, 255, 255, 0.38);
    --light-glass-border: rgba(255, 255, 255, 0.78);
    --light-input: rgba(255, 255, 255, 0.8);
}

body.login-page {
    background-color: #eaf0f8;
    color: var(--light-text);
    position: relative;
    isolation: isolate;
}

/* Wallpaper background with a soft light overlay and a very light blur */
body.login-page::before {
    content: '';
    position: fixed;
    inset: -12px;
    width: auto;
    height: auto;
    background-color: #eaf0f8;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 245, 255, 0.18) 50%, rgba(255, 255, 255, 0.32) 100%),
        url('https://wallpaperaccess.com/full/10275795.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0.5px);
    transform: scale(1.03);
    z-index: -1;
}

body.login-page::-webkit-scrollbar-thumb {
    background: rgba(23, 32, 51, 0.2);
}

body.login-page::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 32, 51, 0.35);
}

/* Frosted light glass card - subtle blur */
.login-container,
.register-container {
    background: var(--light-glass);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    border: 1px solid var(--light-glass-border);
    box-shadow:
        0 24px 60px rgba(23, 43, 77, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: var(--light-text);
}

.login-container::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, transparent 48%, rgba(255, 255, 255, 0.2) 100%);
}

.login-header h2 {
    color: var(--light-text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.login-header p {
    color: var(--light-text-dim);
}

/* Inputs, selects and placeholders */
.login-form input,
.login-form select {
    background: var(--light-input);
    border: 1px solid rgba(23, 32, 51, 0.14);
    color: var(--light-text);
    box-shadow: inset 0 1px 2px rgba(23, 43, 77, 0.05);
}

.login-form select {
    border-radius: 20px;
    padding: 16px 18px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.login-form input::placeholder {
    color: #7b879b;
    opacity: 1;
}

.login-form input:focus,
.login-form select:focus {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(110, 0, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(110, 0, 255, 0.12);
}

.login-form select option {
    background: #ffffff;
    color: var(--light-text);
}

/* Keep browser autofill readable in the light theme */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--light-text);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Captcha */
.captcha-container {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(23, 32, 51, 0.1);
}

.captcha-code {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 8px rgba(23, 43, 77, 0.08);
}

.captcha-refresh {
    background: rgba(110, 0, 255, 0.09);
    color: var(--light-accent);
}

.captcha-refresh:hover {
    background: rgba(110, 0, 255, 0.16);
}

/* Remember / forgot */
.remember-forgot {
    color: var(--light-text-dim);
}

.forgot a {
    color: var(--light-accent);
}

.forgot a:hover {
    color: var(--light-accent-dark);
}

/* Checkbox */
body.login-page input[type="checkbox"] {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(23, 32, 51, 0.25);
    position: relative;
}

body.login-page input[type="checkbox"]:checked {
    background-color: var(--light-accent);
    border-color: var(--light-accent);
}

body.login-page input[type="checkbox"]:checked::after {
    color: #ffffff;
    top: 1px;
    left: 4px;
}

/* Buttons */
.btn-login {
    background: linear-gradient(135deg, var(--light-accent) 0%, #8b3dff 100%);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(110, 0, 255, 0.26);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--light-accent-dark) 0%, #7a2be6 100%);
    box-shadow: 0 16px 32px rgba(110, 0, 255, 0.34);
}

.btn-register {
    background: rgba(255, 255, 255, 0.72);
    color: var(--light-accent-dark);
    border: 1px solid rgba(110, 0, 255, 0.3);
}

.btn-register:hover {
    background: #ffffff;
    border-color: var(--light-accent);
    box-shadow: 0 10px 24px rgba(110, 0, 255, 0.14);
}

/* Light popups */
body.login-page .popup-overlay {
    background-color: rgba(23, 32, 51, 0.4);
}

body.login-page .popup-content {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--light-text);
    box-shadow: 0 24px 60px rgba(23, 43, 77, 0.24);
}

body.login-page .popup-message {
    color: #374151;
}

body.login-page .popup-close-btn {
    background: rgba(23, 32, 51, 0.06);
    color: var(--light-text);
}

body.login-page .popup-close-btn:hover {
    background: rgba(23, 32, 51, 0.12);
}

/* Responsive light theme refinements */
@media (max-width: 500px) {
    .login-container,
    .register-container {
        background: rgb(255 255 255 / 10%);
        backdrop-filter: blur(1px) saturate(300%);
        -webkit-backdrop-filter: blur(1px) saturate(300%);
    }
}

