/* ===== Entrada — duas colunas (foto / acesso), como o login do Portal Ribal ===== */
.login { display: grid; grid-template-columns: 54.7fr 45.3fr; min-height: 100vh; min-height: 100svh; }

.login__visual { position: relative; overflow: hidden; background: #050608; isolation: isolate; }
.login__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; z-index: -2; }
.login__visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%), linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 34%);
}
.login__logo { position: absolute; left: clamp(24px, 3.3vw, 56px); top: clamp(24px, 4.4vh, 44px); height: clamp(40px, 5.4vw, 60px); width: auto; }
.login__motto { position: absolute; left: clamp(24px, 3.3vw, 56px); bottom: clamp(40px, 9vh, 92px); color: #d4d8dd; font-size: clamp(11px, .85vw, 14px); letter-spacing: .34em; }
.login__motto::after { content: ""; display: block; width: 70px; height: 3px; margin-top: 16px; background: var(--accent); }

.login__panel { position: relative; display: grid; place-items: center; padding: clamp(32px, 6vh, 72px) clamp(24px, 4vw, 64px); background: var(--panel); }
.login__theme { position: absolute; top: 20px; right: 24px; }
.login__box { width: min(100%, 430px); }

.login__title { font-size: clamp(36px, 3.6vw, 60px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; text-align: center; color: var(--text); }
.login__title strong { font-weight: 700; }
.login__rule { display: block; width: 48px; height: 4px; margin: 20px auto 18px; background: var(--accent); border-radius: 2px; }
.login__lead { text-align: center; color: var(--muted); font-size: clamp(15px, 1.15vw, 19px); line-height: 1.4; }

.tabs-pill[hidden] { display: none; }
.tabs-pill { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 30px 0 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); }
.tabs-pill button { height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.tabs-pill button[aria-selected="true"] { background: var(--nav-active); color: var(--text); }

.signin { display: grid; gap: 16px; }
.signin[hidden] { display: none; }
.signin .field input { height: 50px; border-radius: 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px; width: 100%; border: 1px solid var(--btn-border); border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-size: 17px; font-weight: 700; text-decoration: none; transition: transform .2s, opacity .2s, box-shadow .2s; }
.btn .icon { font-size: 20px; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; pointer-events: none; transform: none; box-shadow: none; }
.login__hint { text-align: center; font-size: 13.5px; color: var(--muted); }
.login__switch { display: block; margin: 22px auto 0; padding: 6px 10px; border: 0; background: transparent; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.login__switch:hover { color: var(--text); }

.code-card { display: grid; gap: 14px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius); background: var(--surface); text-align: center; }
.code-card[hidden] { display: none; }
.code-card__label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.code-card__code { font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: .16em; font-variant-numeric: tabular-nums; user-select: all; }
.code-card p { font-size: 14px; color: var(--soft); }
.code-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login__visual { height: clamp(150px, 26vh, 240px); }
  .login__photo { object-position: 35% 62%; }
  .login__motto { display: none; }
  .login__logo { height: 44px; left: 20px; top: 18px; }
  .login__panel { align-items: start; padding-top: 32px; padding-bottom: 40px; }
  .login__theme { top: 14px; right: 16px; background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .25); color: #fff; }
  .login__title { font-size: 38px; }
}

.btn__g { width: 22px; height: 22px; flex: none; }
.login__or { display: flex; align-items: center; gap: 14px; margin: 4px 0; font-size: 13px; color: var(--muted); text-align: center; }
.login__or[hidden] { display: none; }
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login__hint[hidden], .btn[hidden] { display: none; }
