/* ============================================================
   ATLAS — Login page branding
   Scoped to Frappe's login page sections (.for-login, etc.)
   so this file is safe to include on all web pages via
   web_include_css without leaking into other routes.
   ============================================================ */

/* ── Background ─────────────────────────────────────────────── */
body {
  background: #f0f4ff;
}

/* ── ATLAS logo badge (injected by atlas-login.js) ──────────────── */
.atlas-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.atlas-login-logo span {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Page-card head: hide default Frappe app logo ───────────── */
.for-login .page-card-head img.app-logo,
.for-email-login .page-card-head img.app-logo,
.for-forgot .page-card-head img.app-logo {
  display: none;
}

/* ── Title inside the login card head ───────────────────────── */
.for-login .page-card-head h4,
.for-email-login .page-card-head h4,
.for-forgot .page-card-head h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Login card: lift and round ─────────────────────────────── */
.for-login .login-content.page-card,
.for-email-login .login-content.page-card {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  border: 1px solid #e5e7eb;
}

/* ── Login button: ATLAS blue ──────────────────────────────────── */
.for-login .btn-login,
.for-email-login .btn-login {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: background-color 0.15s ease !important;
}

.for-login .btn-login:hover,
.for-email-login .btn-login:hover {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

/* ── Forgot password / back-to-login link ───────────────────── */
.for-login .forgot-password-message a,
.for-forgot .sign-up-message a {
  color: #3b82f6;
}

/* ── Hide Frappe sign-up message; JS inserts ATLAS replacement ─── */
.for-login .sign-up-message,
.for-email-login .sign-up-message {
  display: none;
}

/* ── ATLAS contact message (injected by atlas-login.js) ─────────── */
.atlas-contact-message {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
