@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink-900: #10201c;
  --spring-500: #3fa37d;
  --spring-600: #2f8f68;
  --paper: #f6f4ee;
  --line: #e4ded0;
  --text-900: #14201d;
  --text-600: #4d5c56;
  --clay-100: #f4dfd8;
  --clay-700: #8f3a28;
}

* { box-sizing: border-box; }

body.hcs-auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  font-family: 'Inter', sans-serif;
  color: var(--text-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.hcs-auth-wrap { width: 100%; max-width: 440px; }

.hcs-auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 34px;
  box-shadow: 0 24px 64px -24px rgba(16,32,28,0.25);
}

.hcs-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 26px;
}

.hcs-auth-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--spring-500);
  display: grid; place-items: center;
}
.hcs-auth-mark svg { width: 17px; height: 17px; }

.hcs-auth-brand-text { line-height: 1.15; }
.hcs-auth-brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-400, #8b968f);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.hcs-auth-card h1 {
  font-family: 'Sora', sans-serif;
  font-size: 23px;
  margin: 0 0 6px;
}

.hcs-plan-pick { display: flex; flex-direction: column; gap: 8px; }
.hcs-plan-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #dfe5e2; border-radius: 10px; cursor: pointer; font-weight: 400; }
.hcs-plan-opt input { margin-top: 4px; width: auto; }
.hcs-plan-opt strong { display: block; font-size: 14px; }
.hcs-plan-opt small, .hcs-plan-extra { display: block; font-size: 12.5px; color: #6b7a73; }
.hcs-plan-extra { margin-top: 6px; }
.hcs-auth-hint { color: var(--text-600); font-size: 14px; margin: 0 0 22px; }

.hcs-auth-error {
  background: var(--clay-100);
  color: var(--clay-700);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.hcs-auth-success {
  background: #e6f4ee;
  color: var(--spring-600);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.hcs-auth-field { margin-bottom: 16px; }
.hcs-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.hcs-auth-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-600);
  margin-bottom: 6px;
}

.hcs-auth-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
}
.hcs-auth-field input:focus { outline: none; border-color: var(--spring-500); }

.hcs-auth-submit {
  width: 100%;
  background: var(--ink-900);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}
.hcs-auth-submit:hover { background: #21463c; }

.hcs-auth-footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-600);
  margin: 22px 0 0;
}
.hcs-auth-footer a { color: var(--spring-600); font-weight: 600; text-decoration: none; }

/* Blindagem contra o CSS do tema (carrega depois e pinta inputs/botões) */
body.hcs-auth-body .hcs-auth-field input[type="text"],
body.hcs-auth-body .hcs-auth-field input[type="email"],
body.hcs-auth-body .hcs-auth-field input[type="password"] {
  width: 100%; margin: 0; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: #14201d;
  font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.4; box-shadow: none;
}
body.hcs-auth-body .hcs-auth-field input:focus { outline: none; border-color: var(--spring-500); }

body button.hcs-auth-submit,
body button.hcs-auth-submit:focus {
  width: 100%; margin-top: 6px; padding: 13px; border: none; border-radius: 10px;
  background: var(--ink-900); color: #fff; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-transform: none;
  letter-spacing: normal; box-shadow: none; cursor: pointer;
}
body button.hcs-auth-submit:hover { background: #21463c; color: #fff; }
