/* v4 modern login — Beach Trivia */
:root{
  --bg: #f4fbfd;
  --card: #ffffff;
  --border: #e6eef2;
  --text: #0f2a33;
  --muted: #5a7480;
  --brand1:#00a8cc;  /* teal */
  --brand2:#08d1c7;  /* aqua gradient */
  --shadow: 0 10px 24px rgba(8, 132, 154, .08);
  --radius: 16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text); background: radial-gradient(1200px 600px at 20% -10%, #e9f9ff 0%, #f9feff 40%, var(--bg) 100%), var(--bg);
}

.page{max-width:1100px; margin:24px auto 56px; padding:0 20px}

.brand{display:flex; gap:14px; align-items:center; margin-bottom:18px}
.brand img{display:block; border-radius:10px; box-shadow:var(--shadow)}
.brand h1{margin:0; font-size:28px; line-height:1.25; letter-spacing:.1px}
.brand p{margin:2px 0 0; color:var(--muted); font-size:14px}

.grid{
  display:grid; grid-template-columns:1fr 0.9fr; gap:28px;
}
@media (max-width:960px){ .grid{grid-template-columns:1fr} }

.card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px; overflow:hidden;
}

/* tabs */
.tabs{display:flex; gap:10px; margin-bottom:14px}
.tab{
  appearance:none; border:1px solid var(--border); background:#f8fbfc; color:var(--text);
  padding:8px 14px; border-radius:999px; cursor:pointer; font-weight:600;
}
.tab.active{background:linear-gradient(90deg, var(--brand1), var(--brand2)); color:white; border-color:transparent; box-shadow:0 6px 16px rgba(0,168,204,.2)}
.roleSelect{display:none}

/* form */
.form{display:flex; flex-direction:column; gap:16px}
.field label{display:block; font-weight:600; margin:0 0 6px}
.field input{
  width:100%; height:44px; padding:10px 14px; border-radius:12px; border:1px solid var(--border); outline:none;
  background:#fbfeff; color:var(--text); font-size:15px;
}
.field input:focus{border-color:#b9e7f0; box-shadow:0 0 0 4px rgba(0,168,204,.10)}

.row{display:flex; align-items:center; justify-content:space-between}
.remember{display:flex; align-items:center; gap:10px; color:var(--muted)}
.remember input{width:18px; height:18px}

.link{color:var(--brand1); text-decoration:none; font-weight:600}
.link:hover{text-decoration:underline}

.btn{
  height:46px; border-radius:12px; border:1px solid var(--border); background:#fff; color:var(--text);
  display:inline-flex; align-items:center; justify-content:center; gap:10px; font-weight:700; cursor:pointer;
}
.btn.primary{
  background:linear-gradient(90deg, var(--brand1), var(--brand2)); color:#fff; border:none;
  box-shadow:0 10px 18px rgba(0,168,204,.18);
}
.btn.primary:disabled{opacity:.6; cursor:not-allowed}
.btn.outline{background:#fff}

.or{display:flex; align-items:center; gap:12px; color:#83a3ae; font-weight:600; margin:6px 0 -4px}
.or::before,.or::after{content:""; height:1px; flex:1; background:var(--border)}

.help{margin:6px 0 0; color:#7a99a5; font-size:13px}

/* promo */
.promo{background:linear-gradient(180deg, #e9fbff, #e8f9f7); border-color:#d9f1f4}
.promo h2{margin:6px 0 10px; font-size:26px}
.promo p{margin:0 0 10px; color:#2a4e5a}
.promo ul{margin:0; padding-left:18px; color:#274953}
.promo-art{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.promo-art img{background:#fff; border-radius:12px; border:1px solid var(--border); padding:8px; box-shadow:var(--shadow)}

.visually-hidden{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

/* --- role dropdown tweaks --- */
.field > select#roleSelect {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}
.field > select#roleSelect:focus {
  outline: none;
  border-color: rgba(0,150,200,.45);
  box-shadow: 0 0 0 4px rgba(0,150,200,.12);
}

/* basic structure in case it's missing */
.login-wrap{max-width:1200px;margin:0 auto;padding:24px;display:grid;gap:24px;grid-template-columns:1fr 1fr;}
.card{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.06);padding:20px;}
.brand{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.brand h1{margin:0;font-size:28px}
.sub{margin:0;color:#65748b}
.field{display:flex;flex-direction:column;gap:8px;margin:14px 0}
.row.between{display:flex;justify-content:space-between;align-items:center;margin:6px 0 14px}
.checkbox{display:flex;gap:10px;align-items:center;color:#3f4a5a}
.btn{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;padding:14px 16px;border-radius:12px;border:1px solid transparent;cursor:pointer}
.btn-primary{background:linear-gradient(90deg,#06b6d4,#0596d1);color:#fff}
.btn-ghost{background:#fff;border-color:rgba(0,0,0,.08)}
.divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#7b8698;margin:14px 0}
.divider:before,.divider:after{content:"";height:1px;background:rgba(0,0,0,.08)}
.info h2{margin:0 0 6px}
.info ul{margin:10px 0 0 20px}
@media (max-width:900px){.login-wrap{grid-template-columns:1fr}}

/* favicon-as-images */
.brand img.brand-logo{height:28px;width:auto;display:block}
.info  img.art{height:40px;width:auto;display:block;opacity:.95}
/* art-img */
.info img.art{height:48px;width:48px;object-fit:contain;display:block;opacity:.95;margin-bottom:8px}
/* bt-image-style */
.brand img.brand-logo{height:36px;width:auto;display:block}
.info  img.art{height:48px;width:auto;display:block;opacity:.96;margin-bottom:8px}

/* bt-image-style v2 */
.info > img:not(.art){display:none !important}
.info img.art{
  height:200px;            /* make it big on desktop */
  width:auto;
  display:block;
  margin:8px auto 18px;    /* center it above the heading */
  opacity:.98;
}
@media (max-width:900px){
  .info img.art{height:140px}
}

/* bt-image-style v3 */
.info img:not(.art){display:none !important}
.info img.art{height:260px;width:auto;display:block;margin:8px auto 18px;opacity:.98}
@media (max-width:900px){.info img.art{height:180px}}

/* bt-image-style v4 */
/* Hide non-art images near the feature card, in case one slips in */
.feature,.info,.promo,.right, .card { }
.feature img:not(.art), .promo img:not(.art), .right img:not(.art){display:none !important}
.info img:not(.art){display:none !important}
/* Make the hero art big and centered */
img.art{height:300px;width:auto;display:block;margin:8px auto 18px;opacity:.98}
@media (max-width:900px){img.art{height:200px}}
