/* Telas de acesso restrito (equipe, proprietário, inquilino, comprador) — identidade Felix: azul-marinho, azul royal e vermelho. */
:root {
  --a-navy: #04122e;
  --a-navy-2: #0a2a66;
  --a-blue: #123e9c;
  --a-red: #e8162d;
  --a-red-dark: #bf1022;
}
html, body { height: 100%; }
body.auth {
  margin: 0; min-height: 100vh; color: #e8eefb; background: var(--a-navy);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; position: relative; overflow-x: hidden;
}
/* fundo: degradê + malha discreta + cortes diagonais vermelhos da marca */
body.auth::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(18, 62, 156, .55), transparent 60%),
    radial-gradient(700px 480px at 8% 108%, rgba(10, 42, 102, .75), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 46px),
    linear-gradient(160deg, #061a45 0%, #04122e 55%, #030c20 100%);
}
body.auth::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none; width: 520px; height: 10px; background: var(--a-red);
  transform: rotate(-32deg); left: -150px; top: 70px; box-shadow: 0 34px 0 -2px rgba(232, 22, 45, .45), 0 0 60px rgba(232, 22, 45, .35);
}
.auth-skyline { position: fixed; left: 0; right: 0; bottom: 0; height: 190px; z-index: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(to top, rgba(4, 18, 46, .0), rgba(4, 18, 46, 0)),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 190' preserveAspectRatio='none'><g fill='%230a2a66' fill-opacity='.55'><rect x='30' y='80' width='60' height='110'/><rect x='110' y='40' width='70' height='150'/><rect x='200' y='100' width='50' height='90'/><rect x='270' y='20' width='80' height='170'/><rect x='370' y='90' width='60' height='100'/><rect x='450' y='60' width='70' height='130'/><rect x='545' y='110' width='55' height='80'/><rect x='620' y='30' width='75' height='160'/><rect x='715' y='85' width='60' height='105'/><rect x='795' y='50' width='80' height='140'/><rect x='895' y='105' width='55' height='85'/><rect x='970' y='25' width='75' height='165'/><rect x='1065' y='75' width='65' height='115'/></g></svg>") center bottom / 100% 100% no-repeat; }
.auth-box { position: relative; z-index: 1; width: 100%; max-width: 430px; }
.auth-logo { display: block; margin: 0 auto 22px; width: min(340px, 82%); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
.auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .045));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative;
}
.auth-card::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--a-red), #ff5266 60%, transparent); }
.auth-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffb3bb; background: rgba(232, 22, 45, .14); border: 1px solid rgba(232, 22, 45, .38); padding: 6px 12px; border-radius: 999px; }
.auth-badge i { font-size: 1rem; color: #ff6f7e; }
.auth-title { font-size: 1.45rem; font-weight: 750; color: #fff; margin: 16px 0 4px; letter-spacing: -.01em; }
.auth-sub { color: #aebbd6; font-size: .88rem; margin: 0 0 20px; }
.auth-card label { color: #cfd9ee; font-size: .76rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 7px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card input.form-control, .auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=email] {
  width: 100%; height: 48px; padding: 10px 14px; border-radius: 12px; color: #fff; font-size: 1rem;
  background: rgba(2, 10, 28, .55); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-card input::placeholder { color: #7d8db0; }
.auth-card input:hover { border-color: rgba(255, 255, 255, .3); }
.auth-card input:focus { outline: 0; background: rgba(2, 10, 28, .75); border-color: #6f93ff; box-shadow: 0 0 0 4px rgba(111, 147, 255, .22); color: #fff; }
.auth-card input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #0a1a3d inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.auth-field { position: relative; }
.auth-field .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #9fb0d3; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.25rem; }
.auth-field .eye:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.auth-field.has-eye input { padding-right: 46px; }
.auth-hint { font-size: .78rem; color: #8fa0c4; margin-top: 6px; }
.auth-btn {
  width: 100%; border: 0; cursor: pointer; border-radius: 12px; padding: 14px 18px; margin-top: 6px; color: #fff; font-weight: 750; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #f0283d, var(--a-red) 55%, var(--a-red-dark)); box-shadow: 0 12px 28px rgba(232, 22, 45, .35); transition: transform .12s, box-shadow .15s, filter .15s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.auth-btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 16px 34px rgba(232, 22, 45, .45); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn[disabled] { opacity: .65; cursor: wait; }
.auth-alert { border-radius: 12px; padding: 11px 14px; font-size: .88rem; margin-bottom: 16px; display: flex; gap: 9px; align-items: flex-start; border: 1px solid; }
.auth-alert i { font-size: 1.15rem; margin-top: 1px; }
.auth-alert.danger { background: rgba(232, 22, 45, .14); border-color: rgba(232, 22, 45, .45); color: #ffd0d5; }
.auth-alert.success { background: rgba(31, 170, 89, .14); border-color: rgba(31, 170, 89, .45); color: #c7f3d9; }
.auth-alert.info, .auth-alert.warning { background: rgba(111, 147, 255, .14); border-color: rgba(111, 147, 255, .4); color: #d6e0ff; }
.auth-links { text-align: center; font-size: .86rem; color: #9fb0d3; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.auth-links a, .auth-foot a { color: #9db8ff; font-weight: 600; }
.auth-links a:hover, .auth-foot a:hover { color: #fff; text-decoration: none; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: .76rem; color: #8fa0c4; text-align: center; line-height: 1.4; }
.auth-secure i { color: #5fd09a; font-size: 1.1rem; flex: none; }
.auth-secure span { max-width: 330px; text-align: left; }
.auth-foot { position: relative; z-index: 1; margin-top: 22px; font-size: .74rem; color: #7284a8; text-align: center; letter-spacing: .03em; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px 22px; } .auth-title { font-size: 1.28rem; } body.auth::after { width: 360px; top: 40px; left: -140px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
