/* =============================================================================
   /login — Mobile v2 login page
   Adapted from 8bitedge.com desktop /login — single-column mobile layout.
   ========================================================================== */

.login-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 16px 0;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.login-card {
    background: rgba(10, 10, 20, 0.65);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

/* ── Status bar ───────────────────────────────────────────────────────────── */
.login-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.05);
    font-family: 'Electrolize', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.status-bar-left,
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.status-label { color: #00ff41; font-weight: 700; }
.status-meta  { color: rgba(0, 217, 255, 0.6); font-weight: 700; }

/* ── Form body ────────────────────────────────────────────────────────────── */
.login-form-col {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.login-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8f6ff;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}
.login-subtitle {
    font-size: 0.82rem;
    color: #b8b8c8;
    margin: 0;
    letter-spacing: 0.2px;
}

/* ── Errors ───────────────────────────────────────────────────────────────── */
.alert-danger {
    background: rgba(255, 68, 102, 0.08);
    border: 1px solid rgba(255, 68, 102, 0.45);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.78rem;
    color: #ff6680;
    letter-spacing: 0.3px;
}
.alert-danger ul { margin: 0; padding: 0 0 0 16px; }
.alert-danger ul:only-child li:only-child { list-style: none; padding: 0; }

/* ── Session notice (password reset, etc.) ───────────────────────────────── */
.login-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 255, 65, 0.07);
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-radius: 6px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    color: #00ff41;
    letter-spacing: 0.3px;
}
.login-notice-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.7);
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.form-label {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #00d9ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.forgot-password {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #00d9ff;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.forgot-password:hover { color: #00ff41; }

.form-input {
    width: 100%;
    padding: 11px 13px;
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 6px;
    color: #e8f6ff;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(184, 184, 200, 0.4); }
.form-input:focus {
    border-color: #00ff41;
    background: rgba(15, 15, 30, 1);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

/* ── Captcha ──────────────────────────────────────────────────────────────── */
.form-captcha { overflow: hidden; }

/* ── Remember me ──────────────────────────────────────────────────────────── */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 9px;
}
.checkbox-group input[type="checkbox"],
.checkbox-group input[type="checkbox"]:focus,
.checkbox-group input[type="checkbox"]:focus-visible,
.checkbox-group input[type="checkbox"]:hover,
.checkbox-group input[type="checkbox"]:active {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px;
    height: 18px;
    border: 2px solid #00d9ff !important;
    border-radius: 3px;
    background: rgba(15, 15, 30, 0.8);
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.3) !important;
    outline: none !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.checkbox-group input[type="checkbox"]:checked,
.checkbox-group input[type="checkbox"]:checked:focus,
.checkbox-group input[type="checkbox"]:checked:focus-visible,
.checkbox-group input[type="checkbox"]:checked:hover,
.checkbox-group input[type="checkbox"]:checked:active {
    background: rgba(15, 15, 30, 0.8);
    border: 2px solid #00d9ff !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.3), 0 0 10px rgba(0, 217, 255, 0.5) !important;
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00d9ff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}
.checkbox-group label {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    color: #b8b8c8;
    cursor: pointer;
    letter-spacing: 0.2px;
}

/* ── Submit button ────────────────────────────────────────────────────────── */
.login-button {
    width: 100%;
    margin-top: 4px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff41 100%);
    border: none;
    border-radius: 6px;
    color: #0a0e27;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.login-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.45);
}
.login-button-arrow { font-size: 1rem; }

/* ── OAuth buttons ────────────────────────────────────────────────────────── */
.login-oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.login-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-oauth-btn--twitch {
    background: rgba(145, 70, 255, 0.1);
    border-color: rgba(145, 70, 255, 0.4);
    color: #c9a6ff;
}
.login-oauth-btn--twitch:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: rgba(145, 70, 255, 0.7);
    color: #d9bcff;
    box-shadow: 0 0 14px rgba(145, 70, 255, 0.25);
}
.login-oauth-btn--steam {
    background: rgba(27, 40, 56, 0.5);
    border-color: rgba(103, 193, 245, 0.35);
    color: #9bcfe8;
}
.login-oauth-btn--steam:hover {
    background: rgba(27, 40, 56, 0.75);
    border-color: rgba(103, 193, 245, 0.65);
    color: #b8dff2;
    box-shadow: 0 0 14px rgba(103, 193, 245, 0.2);
}
.login-oauth-btn--facebook {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.4);
    color: #7ab3f5;
}
.login-oauth-btn--facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.7);
    color: #a3caff;
    box-shadow: 0 0 14px rgba(24, 119, 242, 0.25);
}
.login-oauth-btn--google {
    background: rgba(234, 67, 53, 0.08);
    border-color: rgba(234, 67, 53, 0.35);
    color: #f4a49e;
}
.login-oauth-btn--google:hover {
    background: rgba(234, 67, 53, 0.18);
    border-color: rgba(234, 67, 53, 0.65);
    color: #f7bbb8;
    box-shadow: 0 0 14px rgba(234, 67, 53, 0.22);
}

/* ── OAuth divider ────────────────────────────────────────────────────────── */
.login-oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}
.login-oauth-divider::before,
.login-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 217, 255, 0.18);
}
.login-oauth-divider-text {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(184, 184, 200, 0.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Create account footer ────────────────────────────────────────────────── */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
    font-size: 0.8rem;
}
.signup-label { color: #b8b8c8; }
.signup-link {
    color: #00d9ff;
    text-decoration: none;
    font-weight: 700;
}
.signup-link:hover { color: #00ff41; }

/* ── System info card ─────────────────────────────────────────────────────── */
.login-aside-card {
    background: rgba(10, 10, 20, 0.65);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.login-aside-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.04) 0%, rgba(255, 0, 255, 0.03) 100%);
    pointer-events: none;
}
.aside-inner {
    position: relative;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.aside-tag {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: #00ff41;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.35);
}
.aside-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e8f6ff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}
.aside-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aside-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}
.aside-feature-key {
    flex-shrink: 0;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    color: #00d9ff;
    letter-spacing: 1px;
    margin-top: 1px;
    text-shadow: 0 0 6px rgba(0, 217, 255, 0.4);
}
.aside-feature-text {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.76rem;
    color: #b8b8c8;
    letter-spacing: 0.2px;
}
.aside-feature-text strong { color: #e8f6ff; font-weight: 700; }
.aside-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 217, 255, 0.12);
    font-family: 'Electrolize', sans-serif;
    font-size: 0.67rem;
    color: rgba(184, 184, 200, 0.7);
    letter-spacing: 0.5px;
}
.aside-footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff00ff;
    box-shadow: 0 0 6px rgba(255, 0, 255, 0.6);
    flex-shrink: 0;
}
