/* MyStuffPlace - shared styles (header, light-blue band, buttons, forms) */
:root {
  --ink: #001435;          /* dark navy text */
  --muted: #4a5a75;
  --white: #ffffff;
  --sky: #62c9ff;          /* light blue band */
  --sky-soft: #8fd8ff;
  --pill: #e6ecf5;         /* light grey pill (Iniciar sessão) */
  --pill-hover: #d5deeb;
  --black: #000000;
  --border: #dfe5ee;
  --radius: 999px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--sky);
}

/* ---------- header ---------- */
.site-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: var(--radius); border: 0;
  font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-light { background: var(--pill); color: var(--ink); }
.btn-light:hover { background: var(--pill-hover); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn-white { background: var(--white); color: var(--ink); height: 60px; padding: 0 56px; font-size: 1.25rem;
             box-shadow: 0 6px 20px rgba(0, 20, 53, .15); }
.btn-white:hover { background: #f3f7fc; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- language flags ---------- */
.lang { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.lang button {
  width: 28px; height: 20px; padding: 0; border: 2px solid transparent; border-radius: 6px;
  background: none; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.lang button img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.lang button:hover { opacity: .9; }
.lang button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.lang button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- main band ---------- */
.band {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 48px 16px;
  text-align: center;
}
.msg { color: var(--ink); min-height: 1.4em; margin: 0; font-weight: 500; }

/* ---------- forms (Iniciar sessão / Registar) ---------- */
.card {
  width: 100%; max-width: 420px;
  background: var(--white); border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 20, 53, .15); text-align: left;
}
.card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.card p.sub { margin: 0 0 22px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input {
  height: 48px; padding: 0 14px; border: 1px solid #b9c4d4; border-radius: 10px;
  font: inherit; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 20, 53, .12); }
.card .btn { width: 100%; margin-top: 6px; }
.card .alt { margin: 18px 0 0; text-align: center; color: var(--muted); }
.card .alt a { color: var(--ink); font-weight: 600; }
.notice { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #6b4300; font-size: .9rem; display: none; }
.notice.show { display: block; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 14px 16px 18px; font-size: .85rem; }
.site-footer a { color: var(--ink); }

/* ---------- phones ---------- */
@media (max-width: 560px) {
  :root { --header-h: 56px; }
  .brand img { height: 32px; }
  .actions { gap: 6px; }
  .lang { gap: 4px; margin-right: 0; }
  .lang button { width: 24px; height: 17px; }
  .btn { height: 34px; padding: 0 11px; font-size: .8rem; }
  .btn-white { height: 54px; padding: 0 44px; font-size: 1.15rem; }
}
