/* ============================================================
   Capitol Litho – Client Portal Login Styling
   Uses global theme variables from main.css
   ============================================================ */

/* Full-page layout */
.cl-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg, #f9fafb);
  color: var(--text, #020617);
  display: block;
  padding: clamp(2rem, 6vh, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

/* Wrapper – still constrains line length, but no more "box" */
.cl-login-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Card – now just a layout container, no card styling */
.cl-login-card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Brand row */
.cl-login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cl-login-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, var(--brand, #0f766e) 45%, var(--accent, #0ea5e9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b1120;
  box-shadow: 0 14px 35px rgba(15, 118, 110, 0.35);
}

.cl-login-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.cl-login-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #111827);
}

.cl-login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}

/* Heading */
.cl-login-heading h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text, #111827);
}

.cl-login-heading p {
  margin: 0.35rem 0 1.6rem;
  font-size: 0.98rem;
  color: var(--text-muted, #6b7280);
}

/* Alerts */
.cl-login-alert {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Form */
.cl-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.cl-login-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  margin-bottom: 0.25rem;
}

.cl-login-field input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg-alt, #f9fafb);
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text, #111827);
}

.cl-login-field input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.cl-login-field input:focus {
  outline: none;
  border-color: var(--brand, #0f766e);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand, #0f766e) 40%, transparent);
  background: #ffffff;
}

/* Submit button */
.cl-login-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

/* Links */
.cl-login-links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.cl-login-links a {
  color: var(--brand, #0f766e);
  font-weight: 600;
  text-decoration: none;
}

.cl-login-links a:hover {
  color: var(--brand-hover, #115e59);
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .cl-login-body {
    padding: 1.75rem 1rem;
  }

  .cl-login-heading h1 {
    font-size: 1.6rem;
  }

  .cl-login-form {
    max-width: 100%;
  }
}