/* ============================================================
   WeOngoing — Login (welucci-design system)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Wine — primary brand */
  --wine-900:    #2A1729;
  --wine-800:    #3F1E37;
  --wine-700:    #5E1F4F;
  --wine-600:    #7B2D68;
  --wine-50:     #F4EAF2;
  --wine-25:     #FBF6FA;

  /* Warm neutrals */
  --bg:          #FAFAF7;
  --surface:     #FFFFFF;
  --surface-2:   #F5F4F0;

  /* Ink */
  --ink-900:     #1F1A1E;
  --ink-700:     #44394A;
  --ink-500:     #6B6371;
  --ink-400:     #8E8893;

  /* Borders */
  --border:      #ECE7EA;
  --border-soft: #F1ECEF;

  /* Gold (rare accent) */
  --gold:        #D4AF7D;
  --gold-deep:   #B88F5C;

  /* Semantic */
  --error:       #B33A3A;
  --error-soft:  #FEF2F2;
  --error-line:  #FECDD3;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(42,23,41,0.04);
  --shadow:    0 2px 8px rgba(42,23,41,0.05), 0 1px 2px rgba(42,23,41,0.03);
  --shadow-md: 0 6px 20px rgba(42,23,41,0.07), 0 2px 4px rgba(42,23,41,0.04);

  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-shell {
  display: contents;
}

/* ─── Brand panel (vinho) ──────────────────────────────── */
.login-aside {
  position: relative;
  background: linear-gradient(178deg, var(--wine-900) 0%, var(--wine-700) 100%);
  color: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  padding: 56px 60px;
  overflow: hidden;
}
.login-aside::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(212,175,125,0.18), transparent 70%);
  pointer-events: none;
}

.aside-brand {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: auto;
}
.aside-brand img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.aside-name {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.aside-name span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.aside-quote {
  position: relative; z-index: 1;
  max-width: 460px;
}
.aside-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.aside-eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--gold);
}
.aside-quote p {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}
.aside-quote small {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

.aside-foot {
  position: relative; z-index: 1;
  margin-top: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.005em;
}

/* ─── Form panel ──────────────────────────────────────── */
.login-main {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 440px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine-700);
  margin-bottom: 14px;
}
.login-kicker::before {
  content: ''; width: 18px; height: 1px; background: var(--wine-700);
}

.login-card h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.1;
  margin-bottom: 12px;
}

.login-sub {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 28px;
}
.login-sub strong { color: var(--wine-700); font-weight: 600; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--error-soft);
  color: #9F1239;
  border: 1px solid var(--error-line);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  background: var(--wine-700);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--wine-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-with-icon { /* alias */ }

.login-help {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-500);
}
.login-help strong { color: var(--ink-700); font-weight: 600; }

/* ─── Responsivo ──────────────────────────────────────── */
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-main { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .login-card h1 { font-size: 28px; }
}
