/* ── login.html — identidade própria, não usa o shell ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde:   #2D5A1B;
  --verde-m: #3D7A25;
  --vinho:   #7A1C1C;
  --vinho-l: #F8EDEC;
  --creme:   #FAF7F2;
  --borda:   #E2DDD6;
  --texto:   #1A1A1A;
  --muted:   #7A7066;
  --branco:  #FFFFFF;
}

html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--creme); color: var(--texto); }

.page { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }

.brand {
  background: var(--verde);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 60px 48px; position: relative; overflow: hidden;
}
.brand::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.brand-inner { position: relative; text-align: center; }
.mushroom-icon { width: 80px; height: 80px; margin: 0 auto 28px; }
.mushroom-icon svg { width: 100%; height: 100%; }
.brand-name { font-family: 'Oswald', sans-serif; font-size: 42px; font-weight: 700; color: #fff; letter-spacing: .04em; line-height: 1; }
.brand-sub { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.brand-divider { width: 48px; height: 2px; background: rgba(255,255,255,.25); margin: 28px auto; }
.brand-desc { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; max-width: 320px; }
.brand-stats { display: flex; gap: 32px; margin-top: 40px; }
.stat { text-align: center; }
.stat-num { font-family: 'Oswald', sans-serif; font-size: 32px; font-weight: 700; color: #fff; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }

.form-panel { background: var(--branco); display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; }
.form-header { margin-bottom: 40px; }
.form-title { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 600; color: var(--verde); }
.form-subtitle { font-size: 14px; color: var(--muted); margin-top: 6px; }

.form-group { margin-bottom: 20px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
input[type=text], input[type=password] {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--borda); border-radius: 10px;
  font-size: 15px; font-family: 'Inter', sans-serif; color: var(--texto);
  background: var(--creme); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--verde-m); box-shadow: 0 0 0 3px rgba(61,122,37,.12); background: #fff; }
input::placeholder { color: #C4BDB5; }

.btn-login {
  width: 100%; padding: 15px;
  background: var(--verde); color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background .15s, transform .1s; margin-top: 8px;
}
.btn-login:hover { background: var(--verde-m); }
.btn-login:active { transform: scale(.99); }
.btn-login:disabled { background: var(--borda); color: var(--muted); cursor: not-allowed; }

.erro-box {
  background: var(--vinho-l); border: 1.5px solid #E8B4B4; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: var(--vinho); font-weight: 500;
  margin-bottom: 20px; display: none;
}
.erro-box.show { display: block; }

.loading {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
  margin-right: 8px; vertical-align: middle; display: none;
}
.btn-login.carregando .loading { display: inline-block; }
.btn-login.carregando .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--borda); font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 768px) {
  .page { grid-template-columns: 1fr; }
  .brand { padding: 48px 32px; }
  .brand-stats { display: none; }
  .form-panel { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
