/* 
    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;
    }
}

