/* ===== NSO Auth Page - Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange:       #e07000;
    --orange-dark:  #b85500;
    --orange-light: #ff9900;
    --bg-body:      #c8b89a;
    --bg-card:      #f8f0e0;
    --border:       #a87040;
    --text:         #2a1800;
    --text-light:   #5a3820;
    --shadow:       0 4px 16px rgba(0,0,0,0.35);
    --radius:       5px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    background: var(--bg-body);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(224,112,0,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184,85,0,0.10) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== HEADER ===== */
.site-header {
    width: 100%;
    background: linear-gradient(135deg, #c85500 0%, #ff9900 50%, #c85500 100%);
    border-bottom: 3px solid #804000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    text-align: center;
}
.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}
.site-logo {
    max-height: 90px;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(2px 3px 8px rgba(0,0,0,0.5));
}
.logo-text-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.logo-nso {
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    text-shadow: 3px 3px 0 #600, 0 0 24px rgba(255,180,0,0.9);
    letter-spacing: 5px;
    line-height: 1;
}
.logo-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #ffd700;
    letter-spacing: 4px;
    text-shadow: 1px 1px 4px #400;
}

/* ===== AUTH PAGE ===== */
.auth-page {
    width: 420px;
    max-width: 96vw;
    margin: 28px auto 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ===== TABS ===== */
.auth-tabs {
    display: flex;
}
.tab-btn {
    flex: 1;
    padding: 13px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, #a85000, #7a3800);
    color: rgba(255,255,255,0.65);
    border-right: 1px solid #7a3800;
    transition: background 0.2s, color 0.2s;
}
.tab-btn:last-child { border-right: none; }
.tab-btn.active {
    background: linear-gradient(180deg, #e07000, #ff9900);
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.tab-btn:hover:not(.active) {
    background: linear-gradient(180deg, #c06000, #963c00);
    color: rgba(255,255,255,0.85);
}

/* ===== AUTH PANELS ===== */
.auth-panel {
    padding: 20px 22px 22px;
}

/* ===== FORM ===== */
.game-form { }
.form-group { margin-bottom: 13px; }
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 13px;
}
.req { color: #cc2200; font-weight: 700; }
.opt { color: #888; font-size: 11px; font-weight: 400; }

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #c8a060;
    border-radius: 3px;
    font-size: 13px;
    background: #fffdf5;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(224,112,0,0.18);
}

.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 42px; }
.pw-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; font-size: 17px;
    opacity: 0.55; transition: opacity 0.2s;
    padding: 2px;
    line-height: 1;
}
.pw-toggle:hover { opacity: 1; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-light);
}
.form-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.submit-btn {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s, filter 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.submit-btn:hover { transform: scale(1.02); filter: brightness(1.08); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn.full { width: 100%; display: block; }
.submit-btn.btn-orange {
    background: linear-gradient(180deg, #ff8800, #c85500);
    border: 1px solid #a84000;
}
.submit-btn.btn-gray {
    background: linear-gradient(180deg, #777, #444);
}

.form-alt {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
}
.link-orange {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.link-orange:hover { text-decoration: underline; }

/* ===== FLASH MESSAGES ===== */
.msg {
    border-radius: 3px;
    margin-bottom: 12px;
    font-size: 13px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
}
.msg.show {
    padding: 9px 12px;
    max-height: 120px;
}
.msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.msg-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== LOGGED IN BOX ===== */
.logged-in-box {
    text-align: center;
    padding: 10px 0 4px;
}
.avatar-icon { font-size: 44px; margin-bottom: 8px; }
.welcome-text { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.welcome-sub { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-page { margin: 16px auto 30px; }
    .auth-panel { padding: 16px 14px 18px; }
    .logo-nso { font-size: 38px; }
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    width: 520px;
    max-width: 96vw;
    margin: 0 auto 36px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.dl-title {
    background: linear-gradient(90deg, #c85500, #ff9900);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 9px 14px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border);
}
.download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    justify-content: center;
}
.dl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 85px;
    padding: 10px 6px;
    background: linear-gradient(180deg, #fff8ee, #f0e4cc);
    border: 1px solid #c8a060;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    cursor: pointer;
}
.dl-card:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 5px 14px rgba(180,80,0,0.3);
    background: linear-gradient(180deg, #fff3dd, #ffe0a0);
    border-color: var(--orange);
}
.dl-icon {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.dl-name {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}
.dl-sub {
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
}
.dl-btn-label {
    display: inline-block;
    background: linear-gradient(180deg, #ff8800, #c85500);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 3px;
    margin-top: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.dl-card:hover .dl-btn-label {
    background: linear-gradient(180deg, #ffaa00, #e06000);
}

@media (max-width: 480px) {
    .download-section { margin-bottom: 24px; }
    .dl-card { width: 72px; padding: 8px 4px; }
    .dl-icon { font-size: 22px; }
}

