:root {
  --marrom:  #3D1A0E;
  --marrom2: #5C2A18;
  --rosa:    #C9897A;
  --rosa2:   #E2C5B9;
  --creme:   #FDF8F5;
  --lilas:   #F5EDE8;
  --texto:   #2A1208;
  --muted:   #9A7A6E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'DM Sans', sans-serif; background: var(--creme); color: var(--texto); overflow-x: hidden; }

/* BG BLOBS */
.auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.auth-bg-blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.b1 { width: 500px; height: 500px; top: -100px; right: -100px; background: radial-gradient(circle, rgba(201,137,122,0.15), transparent 70%); }
.b2 { width: 400px; height: 400px; bottom: -80px; left: -80px; background: radial-gradient(circle, rgba(61,26,14,0.1), transparent 70%); }

/* LAYOUT */
.auth-page { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* LADO ESQUERDO */
.auth-left {
  width: 420px; flex-shrink: 0;
  background: linear-gradient(160deg, #3D1A0E 0%, #6B3020 100%);
  padding: 2.5rem 3rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(201,137,122,0.15);
}
.auth-left::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(201,137,122,0.1);
}
.auth-logo { display: flex; align-items: center; text-decoration: none; position: relative; z-index: 1; }
.auth-logo-img { height: 80px; width: auto; object-fit: contain; }

.auth-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-quote { margin-bottom: 48px; }
.auth-quote p { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-style: italic; font-weight: 300; color: rgba(255,255,255,0.9); line-height: 1.5; }
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.7); }
.feat-icon { font-size: 20px; }
.auth-left-footer { font-size: 12px; color: rgba(255,255,255,0.3); position: relative; z-index: 1; }

/* LADO DIREITO */
.auth-right {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2rem;
}

.auth-card {
  width: 100%; max-width: 440px;
  background: white; border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 40px rgba(61,26,14,0.1);
  border: 1px solid rgba(201,137,122,0.15);
}

.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 400; color: var(--marrom); line-height: 1.1; margin-bottom: 6px; }
.auth-header p { font-size: 14px; color: var(--muted); }

/* FIELDS */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input { width: 100%; padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 14px; background: var(--creme); border: 1.5px solid rgba(61,26,14,0.12); border-radius: 12px; color: var(--texto); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(201,137,122,0.15); background: white; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.toggle-senha { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; display: flex; transition: color 0.2s; }
.toggle-senha:hover { color: var(--marrom); }
.toggle-senha svg { width: 16px; height: 16px; }

.field-hint-row { display: flex; justify-content: flex-end; margin-top: 6px; }
.link-subtle { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.link-subtle:hover { color: var(--rosa); }

/* BOTÕES */
.btn-auth-primary { width: 100%; padding: 14px; border-radius: 12px; border: none; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; background: linear-gradient(135deg, #C9897A, #A0604F); color: white; cursor: pointer; box-shadow: 0 4px 20px rgba(201,137,122,0.35); transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.btn-auth-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,137,122,0.45); }
.btn-auth-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-auth-secondary { width: 100%; padding: 13px; border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; background: transparent; color: var(--marrom); border: 1.5px solid rgba(61,26,14,0.2); text-decoration: none; display: block; text-align: center; transition: all 0.2s; }
.btn-auth-secondary:hover { background: var(--lilas); border-color: var(--marrom); }

/* SPINNER */
.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; display: none; animation: spin 0.7s linear infinite; }
.btn-spinner.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ALERTA */
.alert { display: none; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert.erro    { display: block; background: #FDF0F0; color: #922B21; border: 1px solid #F5C6C6; }
.alert.sucesso { display: block; background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

/* DIVIDER */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(61,26,14,0.08); }

.auth-back { margin-top: 20px; text-align: center; }
.auth-back a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.auth-back a:hover { color: var(--marrom); }

@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.25rem; justify-content: center; }
  .auth-card { padding: 28px 24px; }
}