/* ═══════════════════════════════════════════════════
   auth.css — Login / Registro modal
═══════════════════════════════════════════════════ */

#authOverlay {
    position: fixed;
    inset: 0;
    z-index: 18000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#authOverlay.active { opacity: 1; visibility: visible; }

.auth-box {
    width: min(480px, 94vw);
    background: #071414;
    border: 1px solid rgba(5,200,200,0.15);
    box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 60px rgba(5,200,200,0.05);
    position: relative;
    overflow: hidden;
}

/* Glow top accent */
.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #05C8C8, transparent);
}

.auth-box-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(5,200,200,0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.auth-logo-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(5,200,200,0.4);
    background: rgba(5,200,200,0.06);
    display: flex; align-items: center; justify-content: center;
}
.auth-logo-circle i { color: #05C8C8; font-size: 0.8rem; }
.auth-brand-text {}
.auth-brand-t1 { font-size: 0.5rem; font-weight: 700; letter-spacing: 2px; color: #05C8C8; display: block; }
.auth-brand-t2 { font-size: 0.7rem; font-weight: 800; color: #fff; display: block; letter-spacing: 1px; }

.auth-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.auth-close:hover { border-color: #05C8C8; color: #05C8C8; }

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(5,200,200,0.08);
}
.auth-tab {
    padding: 0.9rem;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Montserrat', sans-serif;
}
.auth-tab.active { color: #05C8C8; border-bottom-color: #05C8C8; }
.auth-tab:hover:not(.active) { color: rgba(255,255,255,0.5); }

/* Form panels */
.auth-panel { display: none; padding: 1.8rem 2rem 2rem; }
.auth-panel.active { display: block; }

.auth-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    color: #fff;
    margin-bottom: 0.3rem;
}
.auth-title span { color: #05C8C8; }
.auth-subtitle {
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.3rem; }
.auth-label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(5,200,200,0.6);
    text-transform: uppercase;
}
.auth-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(5,200,200,0.1);
    border-radius: 2px;
    padding: 0.7rem 0.85rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}
.auth-input::placeholder { color: rgba(255,255,255,0.15); }
.auth-input:focus {
    border-color: rgba(5,200,200,0.4);
    background: rgba(5,200,200,0.03);
}

.auth-error {
    padding: 0.7rem 0.9rem;
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.25);
    border-radius: 2px;
    font-size: 0.68rem;
    color: #E63946;
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.auth-error.show { display: flex; }

.auth-submit {
    background: #05C8C8;
    color: #020E0E;
    border: none;
    padding: 0.9rem;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.auth-submit:hover { background: #fff; box-shadow: 0 0 20px rgba(5,200,200,0.3); }
.auth-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Demo hint */
.auth-demo-hint {
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    background: rgba(5,200,200,0.04);
    border: 1px solid rgba(5,200,200,0.08);
    border-radius: 2px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
    line-height: 1.6;
}
.auth-demo-hint strong { color: rgba(5,200,200,0.5); }

/* Legal */
.auth-legal {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.6;
    text-align: center;
}
