/* ============================================================
   SOAFAN — Tema de Autenticação
   Amigos da Brigada | Sistema de Gestão de Associados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --dark:          #0B1823;
  --navy:          #10243A;
  --navy-mid:      #183352;
  --accent:        #BF1B2C;
  --accent-hover:  #D9273A;
  --accent-glow:   rgba(191, 27, 44, 0.18);
  --gold:          #E8A320;
  --white:         #FFFFFF;
  --off-white:     #F4F7FA;
  --text:          #192535;
  --text-mid:      #4A5A6B;
  --muted:         #7A8B9A;
  --border:        #D8E2EC;
  --input-bg:      #F8FAFB;
}

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

html, body {
  height: 100%;
}

body.soafan-auth {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
}

/* ── Auth Wrapper ─────────────────────────────────── */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Brand Panel (left) ───────────────────────────── */
.auth-brand {
  width: 42%;
  background:
    linear-gradient(160deg, var(--dark) 0%, var(--navy) 55%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
  flex-shrink: 0;
}

/* Top accent bar */
.auth-brand::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold) 50%, var(--accent));
}

/* Background ring decoration */
.auth-brand-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-brand-ring-1 {
  top: -90px; right: -90px;
  width: 340px; height: 340px;
  border: 56px solid rgba(191, 27, 44, 0.08);
}
.auth-brand-ring-2 {
  bottom: -110px; left: -70px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(191, 27, 44, 0.12) 0%, transparent 70%);
}
.auth-brand-ring-3 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Logo icon */
.brand-icon {
  width: 84px;
  height: 84px;
  background: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(191, 27, 44, 0.45);
  transition: transform 0.3s ease;
}

.brand-icon:hover { transform: scale(1.04); }

.brand-icon svg {
  width: 46px;
  height: 46px;
  fill: white;
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.brand-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.brand-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  margin: 0 auto 1.75rem;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.brand-tagline {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  max-width: 240px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
}

/* ── Form Panel (right) ───────────────────────────── */
.auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem;
  background: var(--white);
  position: relative;
}

/* Subtle top stripe */
.auth-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--off-white);
}

.auth-form-inner {
  width: 100%;
  max-width: 400px;
}

/* Form header */
.auth-header {
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.auth-header p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Fields ───────────────────────────────────────── */
.soa-field {
  margin-bottom: 1.25rem;
}

.soa-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soa-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.soa-field input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.soa-field input::placeholder {
  color: #B0BBC8;
  font-weight: 300;
}

/* ── Info box (for first access / forgot-password) ── */
.soa-info-box {
  background: #EFF6FF;
  border-left: 3px solid #3B82F6;
  border-radius: 0 8px 8px 0;
  padding: 0.875rem 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.825rem;
  color: #1E40AF;
  line-height: 1.65;
}

.soa-info-box h6 {
  font-size: 0.775rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: #1E40AF;
}

/* ── Submit button ───────────────────────────────── */
.btn-soa {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.75rem;
  text-align: center;
  text-decoration: none;
}

.btn-soa:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(191, 27, 44, 0.3);
  color: white;
  text-decoration: none;
}

.btn-soa:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Auth Links ──────────────────────────────────── */
.auth-links {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.auth-links a {
  color: var(--muted);
  font-size: 0.835rem;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--accent);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .auth-brand {
    width: 38%;
  }
}

@media (max-width: 720px) {
  .auth-brand {
    display: none;
  }

  .auth-form {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 420px) {
  .auth-form {
    padding: 2rem 1.25rem;
  }

  .auth-header h1 {
    font-size: 2rem;
  }
}
