/* ================================
   SHOPGAME — AUTH.CSS
   Login / Register styles
================================ */

.auth-body {
    background: var(--dark);
    min-height: 100vh;
    display: flex; align-items: stretch;
    overflow: hidden;
}

/* ================================
   AUTH WRAPPER
================================ */
.auth-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative; z-index: 1;
}

/* ================================
   AUTH PANEL (Form side)
================================ */
.auth-panel {
    position: relative;
    width: 480px; flex-shrink: 0;
    background: rgba(8,15,30,0.98);
    border-right: 1px solid var(--border);
    padding: 3rem 2.5rem;
    display: flex; flex-direction: column;
    overflow-y: auto;
    animation: panel-slide 0.6s ease forwards;
}
@keyframes panel-slide { from { transform: translateX(-30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Corner decorations */
.auth-corner {
    position: absolute; width: 20px; height: 20px;
    pointer-events: none;
}
.auth-corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.auth-corner.tr { top: 12px; right: 12px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.auth-corner.bl { bottom: 12px; left: 12px; border-bottom: 2px solid var(--pink); border-left: 2px solid var(--pink); }
.auth-corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--pink); border-right: 2px solid var(--pink); }

.auth-logo {
    font-family: var(--font-main); font-size: 1.5rem; font-weight: 900;
    text-decoration: none; color: var(--text);
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    display: block;
    transition: text-shadow 0.3s;
}
.auth-logo:hover { text-shadow: 0 0 20px var(--cyan); }
.auth-subtitle {
    font-family: var(--font-main); font-size: 0.65rem;
    color: var(--text-dim); letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

/* ================================
   TABS
================================ */
.auth-tabs {
    display: flex; gap: 0;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.auth-tab {
    flex: 1; text-align: center;
    padding: 0.6rem;
    font-family: var(--font-main); font-size: 0.7rem;
    letter-spacing: 0.15em; font-weight: 700;
    color: var(--text-dim); text-decoration: none;
    transition: all 0.3s;
    border: none; background: transparent;
}
.auth-tab.active {
    background: rgba(0,245,255,0.1);
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
}
.auth-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.03); }

/* ================================
   ALERTS
================================ */
.auth-alert {
    padding: 0.7rem 1rem;
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-radius: 2px;
}
.alert-error  { background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.4); color: #ff8899; }
.alert-success{ background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.alert-icon { font-size: 1rem; }

/* ================================
   FORM
================================ */
.auth-form { display: flex; flex-direction: column; gap: 0.1rem; }

.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-family: var(--font-main); font-size: 0.65rem;
    letter-spacing: 0.2em; color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.required { color: var(--pink); }

.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); font-size: 0.85rem; pointer-events: none;
    z-index: 1;
}
.form-input {
    width: 100%; padding: 0.7rem 1rem 0.7rem 2.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.form-input:focus { background: rgba(0,245,255,0.06); border-color: rgba(0,245,255,0.3); }
.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-textarea { height: 90px; resize: vertical; padding-top: 0.7rem; }

.input-line {
    height: 2px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
}
.input-wrap:focus-within .input-line {
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    box-shadow: 0 0 8px rgba(0,245,255,0.4);
}

.toggle-pw {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: none;
    font-size: 0.85rem; color: var(--text-dim);
    transition: color 0.2s; z-index: 2;
}
.toggle-pw:hover { color: var(--cyan); }

.input-hint {
    display: block; font-size: 0.75rem; margin-top: 0.3rem;
    transition: color 0.3s;
}

/* Password strength */
.pw-strength {
    height: 3px; background: rgba(255,255,255,0.08);
    margin-top: 0.4rem; overflow: hidden; border-radius: 2px;
}
.pw-strength-bar {
    height: 100%; width: 0%;
    transition: width 0.4s ease, background 0.4s;
    border-radius: 2px;
}
.pw-strength-label {
    font-family: var(--font-main); font-size: 0.6rem;
    letter-spacing: 0.15em; margin-top: 0.2rem;
    display: block; min-height: 1em;
}

.form-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}

.form-link {
    color: var(--cyan); text-decoration: none;
    font-family: var(--font-main); font-size: 0.7rem;
    letter-spacing: 0.1em; font-weight: 700;
    transition: text-shadow 0.2s;
}
.form-link:hover { text-shadow: 0 0 10px var(--cyan); }

/* Checkbox */
.checkbox-wrap {
    display: flex; align-items: center; gap: 0.6rem;
    cursor: none;
}
.checkbox-wrap input { display: none; }
.checkbox-custom {
    width: 16px; height: 16px; flex-shrink: 0;
    border: 1px solid rgba(0,245,255,0.4);
    background: transparent;
    position: relative; transition: background 0.2s;
}
.checkbox-wrap input:checked + .checkbox-custom {
    background: rgba(0,245,255,0.2);
    border-color: var(--cyan);
}
.checkbox-wrap input:checked + .checkbox-custom::after {
    content: '✓'; position: absolute; top: -1px; left: 2px;
    color: var(--cyan); font-size: 0.75rem; font-weight: 900;
}
.checkbox-label { font-size: 0.8rem; color: var(--text-dim); }
.terms-check { margin-bottom: 1rem; }

/* ================================
   SUBMIT BUTTON
================================ */
.auth-btn {
    position: relative; overflow: hidden;
    width: 100%; padding: 0.85rem;
    background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(168,85,247,0.15));
    border: 1px solid rgba(0,245,255,0.4);
    color: var(--cyan); font-family: var(--font-main);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em;
    cursor: none; transition: all 0.3s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    margin-top: 0.5rem;
}
.auth-btn:hover {
    background: linear-gradient(135deg, rgba(0,245,255,0.25), rgba(168,85,247,0.25));
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0,245,255,0.3), 0 0 60px rgba(0,245,255,0.1);
    transform: translateY(-1px);
}
.auth-btn.loading { opacity: 0.7; pointer-events: none; }
.btn-content { display: flex; align-items: center; justify-content: center; gap: 0.5rem; position: relative; z-index: 1; }
.btn-icon-auth { font-size: 0.9rem; }
.btn-glow {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,245,255,0.1), transparent);
    transform: translateX(-100%);
    transition: none;
}
.auth-btn:hover .btn-glow {
    animation: btn-sweep 0.6s ease forwards;
}
@keyframes btn-sweep { to { transform: translateX(100%); } }

/* ================================
   SOCIALS
================================ */
.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.2rem 0;
    color: var(--text-dim); font-size: 0.7rem;
    font-family: var(--font-main); letter-spacing: 0.15em;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-socials { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
.social-btn {
    flex: 1; padding: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text); font-family: var(--font-main);
    font-size: 0.7rem; letter-spacing: 0.1em;
    cursor: none; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.steam-btn:hover { border-color: #00adee; color: #00adee; box-shadow: 0 0 15px rgba(0,173,238,0.2); }
.discord-btn:hover { border-color: #5865F2; color: #5865F2; box-shadow: 0 0 15px rgba(88,101,242,0.2); }

.auth-footer-text { font-size: 0.82rem; color: var(--text-dim); text-align: center; margin-top: auto; padding-top: 1rem; }

/* ================================
   INFO PANEL (right side)
================================ */
.auth-info-panel {
    flex: 1; position: relative;
    background: var(--dark2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.info-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 15s linear infinite;
}
.info-content {
    position: relative; z-index: 1;
    padding: 4rem; max-width: 500px;
    animation: info-fade 0.8s ease 0.3s both;
}
@keyframes info-fade { from { opacity: 0; translateY: 20px; } to { opacity: 1; } }
.info-badge {
    display: inline-block;
    background: rgba(0,245,255,0.1); border: 1px solid rgba(0,245,255,0.3);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-main); font-size: 0.65rem; letter-spacing: 0.2em;
    color: var(--cyan); margin-bottom: 1.5rem;
}
.info-content h2 {
    font-family: var(--font-main); font-size: 2.8rem; font-weight: 900;
    line-height: 1.1; margin-bottom: 2rem;
}
.info-features { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.info-feat {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 0.95rem; color: var(--text-dim);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feat-icon { font-size: 1.1rem; }

/* Rank preview cards */
.rank-preview { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.rank-card {
    padding: 0.5rem 1rem;
    font-family: var(--font-main); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; border-radius: 2px;
    display: flex; align-items: center; gap: 0.4rem;
    animation: rank-pulse 2s ease-in-out infinite;
}
.rank-member { background: rgba(0,245,255,0.1); border: 1px solid rgba(0,245,255,0.3); color: #00f5ff; animation-delay: 0s; }
.rank-vip    { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #fbbf24; animation-delay: 0.5s; }
.rank-admin  { background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.3); color: #ff3366; animation-delay: 1s; }
@keyframes rank-pulse { 0%,100% { box-shadow: 0 0 0 transparent; } 50% { box-shadow: 0 0 15px currentColor; } }

/* Benefit cards for register */
.rank-benefits { display: flex; flex-direction: column; gap: 1rem; }
.benefit-card {
    padding: 1rem 1.2rem;
    border-radius: 3px;
}
.member-card { background: rgba(0,245,255,0.05); border: 1px solid rgba(0,245,255,0.2); }
.vip-card    { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3); }
.admin-card  { background: rgba(255,51,102,0.05); border: 1px solid rgba(255,51,102,0.2); }
.benefit-rank {
    font-family: var(--font-main); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; margin-bottom: 0.6rem;
}
.member-card .benefit-rank { color: var(--cyan); }
.vip-card    .benefit-rank { color: #fbbf24; }
.admin-card  .benefit-rank { color: var(--pink); }
.benefit-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.benefit-card li { font-size: 0.82rem; color: var(--text-dim); }

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .auth-info-panel { display: none; }
    .auth-panel { width: 100%; }
}
@media (max-width: 480px) {
    .auth-panel { padding: 2rem 1.5rem; }
}