/* ============================================================================
   PORTAL DE ROMARIAS — SAHOST  ·  Tela de login (design aprovado)
   Duas áreas 63/37 · foto de capa do hotel · 4 idiomas
   ========================================================================== */
.romarias-login {
  --navy: #102b4e;
  --blue: #1d4268;
  --gold: #f4c75c;
  --muted: #64748b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  grid-template-columns: minmax(0, 63fr) minmax(420px, 37fr);
  min-height: 100svh;
  color: var(--navy);
  background: #fff;
}
.romarias-login * { box-sizing: border-box; }
.romarias-login button, .romarias-login input { font: inherit; }

/* ------------------------------ ESQUERDA -------------------------------- */
.romarias-hero {
  position: relative; isolation: isolate; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column;
  padding: clamp(28px, 4.4vw, 70px);
  background: #173654 center / cover no-repeat;
}
.romarias-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,37,67,.93) 0%, rgba(12,43,75,.78) 42%, rgba(11,36,61,.30) 100%),
    linear-gradient(0deg, rgba(7,28,49,.62), transparent 42%);
}
/* sem foto: degradê com a cor do hotel */
.romarias-hero.sem-foto {
  background: linear-gradient(140deg, #0d2340 0%, var(--navy) 45%, #1d4268 100%);
}
.romarias-hero.sem-foto::before { opacity: .45; }

.romarias-brand { display: flex; align-items: center; gap: 17px; }
.romarias-brand img {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: 10px; background: #fff; padding: 5px;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.romarias-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.romarias-brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 2.1vw, 31px);
  letter-spacing: .04em; margin-top: 4px; text-transform: uppercase; line-height: 1.1;
}
.romarias-hero-body { margin: auto 0; max-width: 620px; padding: clamp(34px, 5vw, 56px) 0; }
.romarias-rule { width: 68px; height: 2px; background: var(--gold); margin-bottom: clamp(26px, 3.6vw, 46px); }
.romarias-hero h1 {
  font-size: clamp(31px, 3.1vw, 55px); line-height: 1.09;
  letter-spacing: -.038em; margin: 0 0 20px; font-weight: 750;
}
.romarias-hero h1 span { color: #ffdc88; }
.romarias-lead {
  font-size: clamp(14px, 1.1vw, 18px); line-height: 1.68;
  color: #e1e9f3; max-width: 540px; margin: 0 0 32px;
}
.romarias-features { display: grid; gap: 21px; }
.romarias-feature { display: flex; align-items: center; gap: 16px; }
.romarias-feature-icon {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.13);
  border-radius: 14px; color: #ffdf92;
}
.romarias-feature strong { display: block; font-size: 14.5px; margin-bottom: 5px; }
.romarias-feature p { font-size: 12.5px; color: #dce6f0; margin: 0; line-height: 1.5; }

.romarias-footer {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  background: rgba(10,34,58,.66); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 15px 19px; width: fit-content;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.romarias-footer-item { display: flex; gap: 9px; align-items: center; font-size: 11.5px; line-height: 1.55; }
.romarias-footer-item strong { display: block; font-weight: 700; font-size: 11.5px; }
.romarias-footer-item svg { color: #ffdf92; flex: none; }

/* ------------------------------ DIREITA --------------------------------- */
.romarias-right {
  background: linear-gradient(155deg, #fff 15%, #f4f8fe 100%);
  padding: clamp(20px, 2.8vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}

/* seletor de idioma */
.romarias-lang { position: absolute; top: 26px; right: 36px; z-index: 5; }
.romarias-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid #d6e3f5; background: #fff; color: var(--blue);
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.romarias-lang-btn:hover { border-color: #b9d2f0; background: #f7fbff; }
.romarias-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 152px; background: #fff; border: 1px solid #d6e3f5;
  border-radius: 11px; box-shadow: 0 16px 40px -18px rgba(16,43,78,.45);
  padding: 5px; display: none;
}
.romarias-lang-menu.on { display: block; }
.romarias-lang-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 7px; font-size: 12.5px;
  font-weight: 700; color: var(--navy); cursor: pointer; text-align: left;
  background: none; border: 0;
}
.romarias-lang-item:hover { background: #f2f7fd; }
.romarias-lang-item.on { background: rgba(244,199,92,.18); }
.romarias-lang-item .flag { font-size: 15px; line-height: 1; }

/* cartão */
.romarias-card {
  width: 100%; max-width: 500px; margin: 0 auto;
  border: 1px solid #d6e3f5; background: #fff; border-radius: 22px;
  padding: clamp(24px, 2.8vw, 44px) clamp(21px, 2.6vw, 40px);
  box-shadow: 0 18px 65px rgba(22,60,101,.07);
}
.romarias-card-logo {
  height: 92px; max-width: 210px; object-fit: contain;
  display: block; margin: 0 auto 28px;
}
.romarias-card-logo-txt {
  display: block; text-align: center; margin: 0 auto 26px;
  font-family: Georgia, serif; font-size: 22px; font-weight: 700;
  letter-spacing: .03em; color: var(--navy); text-transform: uppercase;
}
.romarias-card h2 { font-size: 26px; letter-spacing: -.035em; margin: 0 0 8px; font-weight: 800; }
.romarias-subtitle { color: var(--muted); font-size: 13.5px; margin: 0 0 27px; line-height: 1.6; }
.romarias-label {
  display: block; font-size: 10.5px; letter-spacing: .065em; font-weight: 800;
  color: #395779; margin: 0 0 8px; text-transform: uppercase;
}
.romarias-field { position: relative; margin-bottom: 21px; }
.romarias-field svg.field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #2d679d; pointer-events: none; }
.romarias-input {
  height: 52px; width: 100%; padding: 0 46px;
  border: 1px solid #d5e1ef; border-radius: 11px;
  background: #f4f7fb; color: #102b4e; outline: none;
  font-size: 14.5px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.romarias-input:focus { border-color: #4179b5; background: #fff; box-shadow: 0 0 0 3px rgba(65,121,181,.12); }
.romarias-input::placeholder { color: #8798ae; }
.romarias-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; border: 0; background: transparent;
  color: #2d679d; cursor: pointer; padding: 9px; border-radius: 7px;
}
.romarias-eye:hover { background: #eef4fb; }
.romarias-forgot {
  display: block; margin: -9px 0 20px auto;
  background: none; border: 0; color: #2865a1;
  font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.romarias-forgot:hover { text-decoration: underline; }
.romarias-primary {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  width: 100%; height: 54px;
  background: linear-gradient(90deg, #f5bf40, #ffda7a); color: #102036;
  font-weight: 800; border: 0; border-radius: 11px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(224,169,42,.18);
  transition: filter .15s, transform .1s;
}
.romarias-primary:hover:not(:disabled) { filter: brightness(1.04); }
.romarias-primary:active:not(:disabled) { transform: translateY(1px); }
.romarias-primary:disabled { opacity: .68; cursor: wait; }
.romarias-primary .spin { animation: romarias-spin 1s linear infinite; }
@keyframes romarias-spin { to { transform: rotate(360deg); } }
.romarias-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: #6c829d; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
}
.romarias-divider::before, .romarias-divider::after { content: ""; height: 1px; background: #dce5f0; flex: 1; }
.romarias-secondary {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; padding: 14px; border: 1px solid #b9d2f0; border-radius: 11px;
  background: #fff; color: #153c68; cursor: pointer; font-weight: 800;
  font-size: 13.5px; transition: background .15s, border-color .15s;
}
.romarias-secondary:hover { background: #f7fbff; border-color: #9dc0e8; }
.romarias-secondary small { font-size: 11.5px; color: #788ba4; font-weight: 400; }
.romarias-security {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 22px; color: #7b8da4; font-size: 11.5px;
}
.romarias-security svg { color: #149b69; }
.romarias-error {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: #b42318; background: #fff2f0;
  padding: 10px 12px; border-radius: 9px; margin: 0 0 15px;
  border: 1px solid #f6d4cf; font-weight: 600;
}
.romarias-copyright {
  text-align: center; color: #8997a8; font-size: 10.5px; margin: 16px 0 0;
}
.romarias-copyright .marca-sahost {
  display: inline-block; font-size: 13px; font-weight: 900;
  letter-spacing: .22em; color: #e0a92a;
  text-transform: uppercase;
}
.romarias-copyright .sep { margin: 0 7px; color: #c3cfdd; }

/* ------------------------------ RESPONSIVO ------------------------------ */
@media (max-width: 1180px) {
  .romarias-login { grid-template-columns: minmax(0, 58fr) minmax(400px, 42fr); }
  .romarias-hero { padding: 34px; }
  .romarias-hero-body { padding: 34px 0; }
  .romarias-right { padding: 26px; }
  .romarias-card { padding: 30px 26px; }
  .romarias-card-logo { height: 74px; margin-bottom: 22px; }
  .romarias-feature-icon { width: 46px; height: 46px; border-radius: 12px; }
}
@media (max-width: 940px) {
  .romarias-login { grid-template-columns: 1fr 1fr; }
  .romarias-hero { padding: 26px; }
  .romarias-brand img { width: 56px; height: 56px; }
  .romarias-hero h1 { font-size: 30px; }
  .romarias-lead { font-size: 13.5px; margin-bottom: 22px; }
  .romarias-features { gap: 15px; }
}

/* ============================================================================
   CELULAR: TELA FIXA, SEM ROLAGEM
   Tudo cabe em 100svh: logo compacta + formulário. A parte institucional
   vira uma faixa curta no rodapé (nao empurra a tela).
   ========================================================================== */
@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; }

  .romarias-login {
    display: flex; flex-direction: column;
    height: 100svh; min-height: 100svh; overflow: hidden;
  }

  /* ---- COLUNA DO LOGIN ---- */
  .romarias-right {
    order: 0; flex: 1 1 auto; min-height: 0;
    padding: 46px 14px 0;
    justify-content: flex-start; overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  }
  .romarias-lang { position: absolute; top: 8px; right: 12px; }
  .romarias-lang-btn { height: 30px; padding: 0 9px; font-size: 11px; gap: 5px; border-radius: 8px; }
  .romarias-lang-btn svg { width: 12px; height: 12px; }

  .romarias-card {
    margin: 0 auto; max-width: 430px;
    border-radius: 18px; padding: 20px 17px 18px;
    box-shadow: 0 10px 34px rgba(22,60,101,.10);
  }
  .romarias-card-logo { height: 54px; margin-bottom: 12px; }
  .romarias-card h2 { font-size: 21px; margin-bottom: 3px; letter-spacing: -.025em; }
  .romarias-subtitle { font-size: 12px; margin-bottom: 16px; line-height: 1.4; }

  .romarias-label { font-size: 9.5px; margin-bottom: 5px; letter-spacing: .05em; }
  .romarias-field { margin-bottom: 12px; }
  .romarias-input { height: 50px; font-size: 16px; border-radius: 10px; padding: 0 44px; }
  .romarias-field svg.field-icon { left: 13px; width: 16px; height: 16px; }
  .romarias-eye { right: 5px; padding: 7px; }

  .romarias-forgot { font-size: 12px; margin: -3px 0 13px auto; }
  .romarias-primary { height: 52px; font-size: 14.5px; border-radius: 10px; gap: 9px; }
  .romarias-primary svg { width: 16px; height: 16px; }

  .romarias-divider { margin: 10px 0; font-size: 10px; }
  .romarias-secondary { padding: 8px; font-size: 12px; border-radius: 9px; gap: 1px; }
  .romarias-secondary small { font-size: 10px; }
  .romarias-security { margin-top: 14px; font-size: 10.5px; gap: 6px; }
  .romarias-security svg { width: 14px; height: 14px; }
  .romarias-copyright { margin: 12px 0 0; font-size: 9.5px; }
  .romarias-copyright .marca-sahost { font-size: 10.5px; letter-spacing: .16em; }
  .romarias-error { font-size: 11px; padding: 7px 9px; margin-bottom: 8px; border-radius: 7px; }

  /* ---- FAIXA INSTITUCIONAL (foto de fundo, sem ocupar a tela) ---- */
  .romarias-hero {
    order: 1; flex: 1 1 auto; min-height: 150px;
    padding: 14px 15px; overflow: hidden;
    display: flex; flex-direction: row; align-items: flex-end; gap: 11px;
  }
  .romarias-hero::before {
    background: linear-gradient(90deg, rgba(10,37,67,.94) 0%, rgba(12,43,75,.82) 60%, rgba(11,36,61,.62) 100%);
  }
  .romarias-brand { gap: 9px; flex: 1 1 auto; min-width: 0; align-items: center; }
  .romarias-brand img { width: 38px; height: 38px; border-radius: 7px; padding: 3px; }
  .romarias-eyebrow { font-size: 8px; letter-spacing: .16em; }
  .romarias-brand-name { font-size: 13.5px; margin-top: 1px; letter-spacing: .02em; }
  .romarias-hero-body { display: none; }   /* texto longo sai da tela fixa */
  .romarias-footer { display: none; }
}

/* telas baixinhas (ex.: 640px) — compacta ainda mais */
@media (max-width: 760px) and (max-height: 700px) {
  .romarias-card { padding: 11px 14px 11px; margin-top: 22px; border-radius: 14px; }
  .romarias-card-logo { height: 34px; margin-bottom: 5px; }
  .romarias-card h2 { font-size: 16px; }
  .romarias-subtitle { font-size: 10.5px; margin-bottom: 7px; }
  .romarias-field { margin-bottom: 7px; }
  .romarias-input { height: 41px; }
  .romarias-primary { height: 43px; }
  .romarias-divider { margin: 8px 0; }
  .romarias-secondary { padding: 6px; }
  .romarias-hero { height: 92px; }
  .romarias-copyright { display: none; }
}

/* telas muito baixinhas: esconde o institucional de vez */
@media (max-width: 760px) and (max-height: 620px) {
  .romarias-hero { display: none; }
  .romarias-card { margin-top: 16px; }
}

@media (max-width: 400px) {
  .romarias-right { padding: 58px 12px 22px; }
  .romarias-card { padding: 19px 15px; }
  .romarias-hero h1 { font-size: 25px; }
  .romarias-card-logo { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .romarias-login * { transition: none !important; animation: none !important; }
}
