/* Load custom Greek font */
@font-face {
  font-family: "IPE Sans";
  src: url("../IPE_Sans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset + base */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #A5A5A8;
  --card: #ffffff;
  --text: #111;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

body {
  font-family: "IPE Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Centered auth layout */
.auth-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h1 {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 700;
}

/* Form fields */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.field > span {
  font-size: 14px;
  color: var(--muted);
}
.field input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .02s ease, background .2s ease;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }

/* Messages */
.msg {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  min-height: 1.2em;
}
.msg.error { color: #dc2626; }
.msg.success { color: #16a34a; }

/* Small screens */
@media (max-width: 420px) {
  .card { padding: 22px; }
  .card h1 { font-size: 24px; }
}

/* --- Sticky Topbar (κοινό σε όλες τις σελίδες) --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.topbar .brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .2px;
}

.spacer { flex: 1 1 auto; }

/* Μικρό κουμπί (ενιαίο στυλ παντού) */
.btn.btn-small {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 10px;
}

/* Τα <a class="btn"> χωρίς υπογράμμιση */
.btn { text-decoration: none; }

/* --- Card width fix: full-width by default; limit only on login page --- */
.card { max-width: none; width: 100%; }
.auth-wrap .card { max-width: 420px; margin: 0 auto; } /* only the login card */
