/* =========================================================
   Shared auth/gate styling
   Used by: admin/login, admin/setup, _resume/locked
   Matches the calc-card aesthetic in style.css
   ========================================================= */

body.auth-body {
  background: #f5f8fd;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 20px;
}

/* ---------- Auth card (admin login/setup) ---------- */
.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 90px 0 rgba(110, 123, 131, 0.1);
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.auth-card.auth-card-wide {
  max-width: 480px;
}
.auth-card .auth-icon {
  text-align: center;
  margin-bottom: 14px;
}
.auth-card .auth-icon i {
  font-size: 2.5rem;
  color: #0563bb;
}
.auth-card h3 {
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: #45505b;
  margin: 0 0 6px;
}
.auth-card .auth-sub {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  margin: 0 0 24px;
}
.auth-card .notice {
  background: #e8f0fb;
  border-radius: 8px;
  padding: 12px 16px;
  color: #0452a3;
  font-size: 13.5px;
  margin-bottom: 22px;
}
.auth-card .form-label {
  font-weight: 600;
  font-size: 14px;
  color: #45505b;
}
.auth-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
}
.auth-card .form-control:focus {
  border-color: #0563bb;
  box-shadow: 0 0 0 0.2rem rgba(5, 99, 187, 0.15);
}
.auth-card .btn-submit {
  background: #0563bb;
  color: #fff;
  border: none;
  padding: 11px;
  font-weight: 600;
  border-radius: 8px;
  width: 100%;
  transition: background 0.2s;
}
.auth-card .btn-submit:hover {
  background: #0452a3;
}
.auth-card .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-back {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}
.auth-back a {
  color: #0563bb;
  text-decoration: none;
}
.auth-back a:hover {
  text-decoration: underline;
}

/* ---------- Gate card (resume password gate) ---------- */
.gate-card {
  background: #fff;
  max-width: 440px;
  width: 100%;
  padding: 40px 36px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.gate-card h1 {
  color: #173b6c;
  font-family: "Raleway", sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 14px 0 8px;
}
.gate-card p.lead {
  color: #555;
  font-size: 14.5px;
  margin-bottom: 26px;
  line-height: 1.55;
}
.gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7f1fb;
  color: #0563bb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.gate-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4dae3;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 14px;
  transition: border 0.2s;
  font-family: "Open Sans", sans-serif;
}
.gate-card input[type="password"]:focus {
  outline: none;
  border-color: #0563bb;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.12);
}
.gate-card button {
  width: 100%;
  padding: 12px;
  background: #0563bb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-card button:hover {
  background: #044a8f;
}
.gate-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gate-error {
  color: #c0392b;
  background: #fdecea;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.gate-back {
  display: inline-block;
  margin-top: 20px;
  color: #888;
  font-size: 13px;
  text-decoration: none;
}
.gate-back:hover {
  color: #0563bb;
}

/* ---------- Vertically center the auth/gate cards in the viewport ---------- */
/* Admin login + setup: section wrapper is #auth.services > .container */
#auth.services {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
#auth.services > .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Resume gate: <main class="resume-gate-main"> wraps .gate-card directly.
   No explicit background — inherits the page background so the sidebar
   column blends in seamlessly (matches admin/login behaviour). */
.resume-gate-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.resume-gate-main .gate-card {
  margin: 0 auto;
}
