/* /styles/login.css - Blueprint-inspired, clean UI */

:root {
  --bg: #f5f7fb;
  --bg2: #e9edf5;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #d5dce6;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --brand1: #1d7bf0;
  --brand2: #33b4ff;
  --accent: #0ea5e9;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
}

/* Header */
.topbar {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Page */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.card {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}
.sub {
  margin: 0 0 14px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
  color: var(--text);
}

input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: #f9fbff;
  font-size: 0.96rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus {
  border-color: var(--brand1);
  box-shadow: 0 0 0 4px rgba(29, 123, 240, 0.15);
  background: #fff;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
  color: var(--text);
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.btn:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn.primary {
  border: 0;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color: #fff;
}

.btn.social {
  background: #fff;
  color: var(--text);
  width: 100%;
  margin-top: 10px;
  flex: unset;
}

.btn.facebook {
  border: 0;
  background: #1877f2;
  color: #fff;
}

.btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: 8px;
  font-weight: 900;
}
.btn .icon.google {
  background: #fff;
  color: #4285f4;
  border: 1px solid var(--border);
}

.btn .icon.google-logo {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
}
.btn .icon.facebook {
  background: #0b5fc4;
  color: #fff;
}
.btn .icon.microsoft {
  background: #fff;
  color: #00a4ef;
  border: 1px solid var(--border);
}

.btn .icon.microsoft-logo {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
}

/* Verification modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  width: min(460px, 92vw);
  box-shadow: var(--shadow);
}
.modal h3 {
  margin: 0 0 6px;
}
.modal p {
  margin: 6px 0 12px;
  color: var(--muted);
}
.modal .modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.notice.inline {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.field-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}
.field-note.error {
  color: #d14343;
}
.field-note.ok {
  color: #0a7d2c;
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.9);
}

.notice.error {
  border-color: #fda4af;
  background: #fff1f2;
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35rem;
}

.tiny {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 10px 14px;
  }
  .brand-logo {
    height: 32px;
  }
}
