/* =====================================================================
   Vértice · portal-login.css  (redesign do login do PORTAL DO CLIENTE)
   Usado APENAS por portal/index.html.
   Não afeta portal.html, que continua com o portal-style.css.
   ===================================================================== */

:root {
  --navy: #0d253f;
  --navy-2: #102f50;
  --navy-3: #081a2d;
  --cyan: #01b4e4;
  --cyan-deep: #0091bd;
  --cyan-soft: #3ad0ff;
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e6ecf3;
  --text: #0d253f;
  --muted: #647184;
  --muted-2: #94a1b2;
  --rose: #e23b54;
  --green: #0e9f6e;
  --field: #f4f7fa;
  --shadow: 0 1px 2px rgba(13, 37, 63, .05), 0 24px 60px -28px rgba(13, 37, 63, .30);
}

body.dark {
  --bg: #070f1c;
  --surface: #101e30;
  --surface-2: #0c1827;
  --border: #1d3047;
  --text: #e8eef6;
  --muted: #93a3b8;
  --muted-2: #6f8198;
  --field: #0c1827;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -30px rgba(0, 0, 0, .8);
}

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

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}

.login-container { width: 100%; display: grid; place-items: center; }

.login-box {
  width: min(960px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow);
  position: relative;
  animation: pop .6s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ===== PAINEL DE MARCA (esquerda) ===== */
.brand-panel {
  background: linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-3) 100%);
  color: #fff;
  padding: 46px 42px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brand-panel .flow { position: absolute; inset: 0; opacity: .5; }
.brand-panel .glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
  opacity: .22; bottom: -120px; left: -80px; filter: blur(8px);
}
.bp-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.bp-logo {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan-deep));
  display: grid; place-items: center; color: #04263a; font-size: 22px;
  box-shadow: 0 10px 26px -8px rgba(1, 180, 228, .8);
}
.bp-top h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -.6px; }
.bp-mid { margin-top: auto; position: relative; z-index: 2; }
.bp-mid h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 32px; line-height: 1.18; font-weight: 700; letter-spacing: -1px; }
.bp-mid h2 em { font-style: normal; color: var(--cyan-soft); }
.bp-mid p { margin-top: 14px; color: #b3c4d6; font-size: 15px; line-height: 1.6; max-width: 330px; }
.bp-feats { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 2; }
.bp-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #cdd9e8; }
.bp-feat .chk {
  width: 24px; height: 24px; border-radius: 7px; background: rgba(1, 180, 228, .18);
  display: grid; place-items: center; flex-shrink: 0; color: var(--cyan-soft); font-size: 11px;
}

/* ===== LADO DO FORMULÁRIO (direita) ===== */
.form-side {
  padding: 48px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.theme-toggle {
  position: absolute; top: 22px; right: 22px;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  cursor: pointer; font-size: 15px; display: grid; place-items: center; transition: .18s;
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.login-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: -.6px; color: var(--text);
}
.login-header .subtitle { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* campos */
.field-label {
  display: block; font-size: 13px; font-weight: 600; margin: 20px 0 7px; color: var(--text);
}
.input-group {
  display: flex; align-items: center; gap: 11px;
  background: var(--field); border: 1.5px solid var(--border);
  border-radius: 13px; padding: 0 14px; height: 52px; transition: .2s;
}
.input-group:focus-within {
  border-color: var(--cyan); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(1, 180, 228, .13);
}
.input-group > i { color: var(--muted-2); font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }
.input-group input {
  border: none; background: none; outline: none; font: inherit; font-size: 15px;
  color: var(--text); width: 100%; height: 100%;
}
.input-group input::placeholder { color: var(--muted-2); }
.toggle-pass {
  background: none; border: none; cursor: pointer; color: var(--muted-2);
  padding: 4px; font-size: 16px; transition: .15s;
}
.toggle-pass:hover { color: var(--cyan); }

/* botão (a classe usada no portal é .btn) */
.btn {
  margin-top: 26px; width: 100%; height: 53px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); color: #fff;
  font-family: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 14px 28px -12px rgba(1, 180, 228, .85); transition: .2s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(1, 180, 228, .95); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .85; cursor: default; transform: none; }

/* mensagem de erro (mantém .error-message) */
.error-message {
  margin-top: 14px; font-size: 13.5px; text-align: center; min-height: 18px;
  font-weight: 600; color: var(--rose);
}

/* divisor + troca de acesso (mantém .login-switch) */
.login-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--muted-2); font-size: 12.5px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-switch a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; border-radius: 13px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none;
  font-size: 14.5px; font-weight: 600; transition: .18s;
}
.login-switch a:hover { border-color: var(--cyan); color: var(--cyan); background: var(--surface-2); }

/* responsivo */
@media (max-width: 820px) {
  .login-box { grid-template-columns: 1fr; max-width: 440px; }
  .brand-panel { display: none; }
  .form-side { padding: 40px 30px; }
}
