/* ===== PIXEL ART LOGIN ===== */
.login-page,
.auth-page {
    min-height: calc(100vh - 4rem);
    padding: 0;
    background-color: var(--login-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chicken-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.chk {
    position: absolute;
    image-rendering: pixelated;
    object-fit: contain;
    opacity: 0.25;
}

.chk.c3  { left: 7%;   top: 12%;  width: 32px; height: 32px; opacity: 0.22; }
.chk.c4  { left: 82%;  top: 8%;   width: 28px; height: 28px; transform: scaleX(-1); opacity: 0.18; }
.chk.c5  { left: 55%;  top: 18%;  width: 34px; height: 34px; opacity: 0.2; }
.chk.c6  { left: 20%;  top: 45%;  width: 30px; height: 30px; transform: scaleX(-1); opacity: 0.18; }
.chk.c7  { left: 72%;  top: 52%;  width: 36px; height: 36px; opacity: 0.22; }
.chk.c8  { left: 38%;  top: 72%;  width: 28px; height: 28px; transform: scaleX(-1); opacity: 0.18; }
.chk.c9  { left: 5%;   top: 78%;  width: 32px; height: 32px; opacity: 0.2; }
.chk.c10 { left: 88%;  top: 70%;  width: 30px; height: 30px; transform: scaleX(-1); opacity: 0.2; }

.login-page .page-shell,
.auth-page .page-shell {
    width: 100%;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.login-page .page-main,
.auth-page .page-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-popup {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.login-panel {
    width: 100%;
    background: var(--panel-bg);
    border: 3px solid #7c6cf8;
    border-radius: 0;
    box-shadow: 6px 6px 0 #000, 0 0 40px rgba(124, 108, 248, 0.15);
    transition: background 0.22s;
}

.login-panel::before {
    content: '■ MJ1.IO  ■';
    display: block;
    background: #7c6cf8;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.15em;
}

.login-body {
    padding: 1.75rem 2rem 2rem;
}

.login-header {
    margin-bottom: 1.5rem;
}

.login-title {
    margin: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #c4b5fd;
    line-height: 1.9;
    text-shadow: 3px 3px 0 #2e1065;
}

.login-subtitle {
    margin: 0.85rem 0 0;
    font-family: 'VT323', monospace;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.login-socials {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 44px;
    width: 100%;
    border-radius: 0;
    border: 2px solid var(--social-border);
    background: var(--social-bg);
    color: var(--social-color);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
}

.social-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
}

.social-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    background: var(--social-hover);
}

.social-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.1rem;
    color: var(--footer-color);
    font-family: 'VT323', monospace;
    font-size: 1rem;
    letter-spacing: 0.2em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--divider-line);
}

.login-form { display: grid; gap: 0.85rem; }

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    color: var(--text-muted);
    font-family: 'VT323', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.login-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    outline: none;
    box-shadow: inset 3px 3px 0 var(--input-shadow);
    min-height: 42px;
    caret-color: #ffd700;
    transition: border-color 0.1s, box-shadow 0.1s, background 0.22s;
}

.login-input:focus {
    border-color: #ffd700;
    box-shadow: inset 3px 3px 0 var(--input-shadow), 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.login-input::placeholder { color: var(--placeholder); }

.forgot-text {
    margin: 0;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    color: var(--footer-color);
}

.forgot-text a,
.signup-note a {
    color: #ffd700;
}

.forgot-text a:hover,
.signup-note a:hover {
    color: #ffe55c;
    text-decoration: underline;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 2px solid #a89cf8;
    border-radius: 0;
    background: #6b5aed;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
    text-transform: uppercase;
}

.submit-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    background: #7c6cf8;
}

.submit-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.signup-note {
    margin-top: 1.5rem;
    text-align: center;
    font-family: 'VT323', monospace;
    color: var(--footer-color);
    font-size: 1rem;
}

.login-page .text-danger,
.login-page .validation-message {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #ff6b6b !important;
}

.login-page .alert-success {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    background: #0a1a0a;
    border: 2px solid #00ff88;
    border-radius: 0;
    color: #00ff88;
    padding: 0.6rem 0.9rem;
}

@media (max-width: 600px) {
    .login-popup { max-width: 100%; }
    .login-body  { padding: 1.25rem; }
}
