/* ============================================================
   Network Solver — Login Page
   Single-column centred card, no decorative image.
   Matches application.css design language:
   Font: Manrope | Navy: #1c4772 | Crimson: #a2122c
   Background: #f7f9fc
   ============================================================ */

@font-face {
  font-family: "manrope";
  src: url("/static/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
}

/* ── Full-page layout ────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.login-body {
  font-family: manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  background-color: #f7f9fc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card ────────────────────────────────────────────────── */
.login-card {
  width: 420px;
  max-width: 94vw;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(16, 30, 115, 0.12);
  padding: 44px 40px 40px;
}

/* ── Brand mark ──────────────────────────────────────────── */
.login-brand {
  margin-bottom: 28px;
}

.login-brand-name {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #1c4772;
  letter-spacing: -0.4px;
  line-height: 30px;
}

.login-brand-sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* ── Section heading ─────────────────────────────────────── */
.login-heading {
  font-size: 20px;
  font-weight: 700;
  color: #1c4772;
  margin: 0 0 24px;
  line-height: 28px;
}

/* ── GitHub button ───────────────────────────────────────── */
.btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 10px 16px;
  background-color: #24292e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
  line-height: 22px;
  box-sizing: border-box;
}

.btn-github:hover,
.btn-github:focus {
  background-color: #3a3f47;
  color: #ffffff;
  text-decoration: none;
}

/* ── Divider ─────────────────────────────────────────────── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8ecf0;
}

/* ── Form labels ─────────────────────────────────────────── */
.login-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1c4772;
  margin-bottom: 5px;
  letter-spacing: 0.1px;
}

/* ── Form inputs ─────────────────────────────────────────── */
.login-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(16, 30, 115, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #1c4772;
  box-shadow: 0 0 0 3px rgba(28, 71, 114, 0.12);
}

/* ── Form groups ─────────────────────────────────────────── */
.login-field {
  margin-bottom: 16px;
}

/* ── Sign-in button ──────────────────────────────────────── */
.btn-signin {
  display: block;
  width: 100%;
  padding: 10px 20px;
  margin-top: 4px;
  background-color: #a2122c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  line-height: 24px;
  box-sizing: border-box;
}

.btn-signin:hover,
.btn-signin:focus {
  background-color: #8a0f25;
  color: #ffffff;
}

/* ── Error alerts ────────────────────────────────────────── */
.login-error {
  padding: 10px 14px;
  margin-bottom: 14px;
  background-color: #fdf2f4;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  font-size: 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px 24px;
  }
}

/* ============================================================
   Shared-network public login (model_login.html)
   Same card language as above, plus an optional branded visual
   panel when the shared network sets a login background image.
   ============================================================ */

/* Full-height two-column layout: visual panel + form panel.
   With no background image configured, .model-login-visual is
   simply absent and the form panel fills the page (same look as
   the plain .login-body card above). */
.model-login-body {
  display: flex;
  min-height: 100vh;
}

.model-login-visual {
  flex: 1 1 60%;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #1c4772;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  color: #fff;
}

.model-login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 26, 46, 0.55), rgba(15, 26, 46, 0.1));
}

.model-login-message,
.model-login-sub-message {
  position: relative;
  z-index: 1;
}

.model-login-message {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
}

.model-login-sub-message {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.92;
}

.model-login-panel {
  flex: 1 1 40%;
  min-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background-color: #f7f9fc;
}

@media (max-width: 768px) {
  .model-login-body {
    flex-direction: column;
  }

  .model-login-visual {
    flex: 0 0 auto;
    min-height: 220px;
    padding: 28px;
  }

  .model-login-message {
    font-size: 26px;
  }
}
