/* =====================================================
   PURE — Premium Auth pages (Login / Register)
   ===================================================== */

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sarabun', system-ui, -apple-system, sans-serif;
    color: #e9eef6;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(244,194,77,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(244,194,77,0.08) 0%, transparent 60%),
        linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #0d1b2a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.55;
}

/* Subtle floating gold particles via CSS */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
body::before {
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(244,194,77,0.10) 0%, transparent 70%);
}
body::after {
    bottom: -200px; right: -200px;
    background: radial-gradient(circle, rgba(244,194,77,0.07) 0%, transparent 70%);
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, rgba(20,30,50,0.85) 0%, rgba(13,20,35,0.92) 100%);
    border: 1px solid rgba(244,194,77,0.25);
    border-radius: 1.25rem;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.55),
        0 4px 12px rgba(244,194,77,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}

/* gold top accent bar */
.auth-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #f7da74 25%, #f4c24d 50%, #f7da74 75%, transparent 100%);
}

.auth-brand {
    text-align: center;
    padding: 2.2rem 2rem 0.8rem;
}
.auth-brand .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff4c2 0%, #f7da74 35%, #f4c24d 70%, #d4a429 100%);
    color: #2b2100;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow:
        0 8px 18px rgba(244,194,77,0.35),
        inset 0 1px 0 rgba(255,255,255,0.6);
    letter-spacing: 1px;
}
.auth-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f7da74;
    letter-spacing: 0.5px;
}
.auth-brand .tagline {
    color: rgba(233,238,246,0.65);
    font-size: 0.88rem;
    margin-top: 0.4rem;
}

.auth-body {
    padding: 1.4rem 2rem 2rem;
}

.auth-alert {
    background: rgba(229,62,62,0.15);
    border: 1px solid rgba(229,62,62,0.35);
    color: #fed7d7;
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-field { margin-bottom: 1rem; }
.auth-field label {
    display: block;
    color: #f7da74;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 0.2px;
}

.auth-input-wrap {
    position: relative;
}
.auth-input-wrap .icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(244,194,77,0.6);
    font-size: 0.95rem;
    pointer-events: none;
}
.auth-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(244,194,77,0.2);
    color: #fff;
    padding: 0.75rem 0.95rem 0.75rem 2.6rem;
    border-radius: 0.55rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-family: 'Sarabun', sans-serif;
}
.auth-input::placeholder { color: rgba(233,238,246,0.4); }
.auth-input:focus {
    border-color: #f4c24d;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(244,194,77,0.15);
}

.auth-row { display: flex; gap: 0.75rem; }
.auth-row > .auth-field { flex: 1; }

.referrer-box {
    background: rgba(244,194,77,0.08);
    border: 1px dashed rgba(244,194,77,0.4);
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.92rem;
}
.referrer-box .label-mini {
    display: block;
    color: rgba(244,194,77,0.7);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}
.referrer-box.no-ref {
    border-color: rgba(229,62,62,0.4);
    background: rgba(229,62,62,0.08);
    color: #fed7d7;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #fff4c2 0%, #f7da74 30%, #f4c24d 60%, #d4a429 100%);
    color: #2b2100;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 8px 22px rgba(244,194,77,0.35);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    transition: filter 0.15s, box-shadow 0.15s;
    margin-top: 0.5rem;
    font-family: 'Sarabun', sans-serif;
}
.auth-btn:hover {
    filter: brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 28px rgba(244,194,77,0.5);
}
.auth-btn:active { transform: translateY(1px); }

.auth-footer {
    text-align: center;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(244,194,77,0.12);
    color: rgba(233,238,246,0.7);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.15);
}
.auth-footer a {
    color: #f7da74;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.3rem;
}
.auth-footer a:hover { color: #fff4c2; text-decoration: underline; }

.gtranslate_wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

@media (max-width: 480px) {
    .auth-brand { padding: 1.6rem 1.4rem 0.6rem; }
    .auth-body { padding: 1rem 1.4rem 1.5rem; }
    .auth-footer { padding: 0.85rem 1.4rem 1.2rem; }
    .auth-row { flex-direction: column; gap: 0; }
}
