/* CallBreezy sign-in, forgot password and reset password pages (Nov 9 2026). Loaded after cb-ui.css. */
body.cb-auth { min-height: 100vh; margin: 0; display: block; padding: 0; background: var(--bg); color: var(--text); }
.cb-auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* Brand side */
.cb-auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 44px 52px; display: flex; flex-direction: column;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(62, 207, 142, 0.26), transparent 60%),
    linear-gradient(150deg, #1c3f9e 0%, #3f7ff2 52%, #6a5cf0 100%);
}
.cb-auth-brand > * { position: relative; z-index: 1; }
.cb-auth-brand .cb-hero-waves { position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 46%; width: 100%; z-index: 0; }
.cb-auth-brand > img { height: 36px; width: auto; align-self: flex-start; }
.cb-auth-pitch { margin-top: auto; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; max-width: 15ch; }
.cb-auth-points { list-style: none; margin: 22px 0 auto; padding: 0; display: grid; gap: 12px; max-width: 42ch; }
.cb-auth-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.cb-auth-points .cb-icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 8px; flex-shrink: 0; color: #fff;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Form side */
.cb-auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.cb-auth-card {
  width: 100%; max-width: 400px; padding: 34px 32px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop);
}
.cb-auth-card .cb-auth-logo { display: none; height: 34px; width: auto; margin-bottom: 18px; }
html[data-theme="dark"] .cb-auth-card .cb-auth-logo.for-light,
html[data-theme="light"] .cb-auth-card .cb-auth-logo.for-dark { display: none !important; }
.cb-auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--text); }
.cb-auth-card > p, .cb-auth-card .tagline { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 24px; text-align: left; }
.cb-field { margin-bottom: 16px; }
.cb-field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.cb-input { position: relative; }
.cb-input .cb-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.cb-input input {
  width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px 0 42px; border-radius: 12px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--input-bg); border: 1px solid var(--border-strong); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cb-input input::placeholder { color: var(--faint); }
.cb-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cb-auth-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.cb-auth-card a { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.cb-auth-card a:hover { text-decoration: underline; }
.cb-auth-card .btn-primary, .cb-auth-card button[type="submit"] {
  width: 100%; height: 46px; border-radius: 12px; font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 1px solid #2d63d4;
  background: linear-gradient(180deg, #5a93fb 0%, #3f7ff2 58%, #346fe3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(10, 30, 90, 0.35), 0 6px 16px -6px rgba(63, 127, 242, 0.6);
}
.cb-auth-card button[type="submit"]:hover { filter: brightness(1.07); }
.cb-auth-card button[type="submit"]:active { transform: translateY(1px); }
.cb-auth-card button[type="submit"]:disabled { filter: none; opacity: 0.55; cursor: not-allowed; transform: none; }
.cb-auth-back { text-align: center; margin: 18px 0 0; }

/* Messages (ids and classes the page scripts already use) */
.error-msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.error-msg.visible { display: block; }
.msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.msg.ok { display: block; color: var(--accent2); background: color-mix(in srgb, var(--accent2) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent2) 35%, transparent); }
.msg.err { display: block; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: cbSpin 0.6s linear infinite; }
@keyframes cbSpin { to { transform: rotate(360deg); } }

.cb-auth-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.7; }
.cb-auth-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.cb-auth-foot a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .cb-auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .cb-auth-brand { display: none; }
  .cb-auth-panel {
    min-height: 100vh; padding: 28px 16px;
    background:
      radial-gradient(70% 40% at 90% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
      radial-gradient(60% 40% at 0% 100%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%);
  }
  .cb-auth-card .cb-auth-logo { display: block; }
}
@media (max-width: 480px) {
  .cb-auth-card { padding: 26px 20px; border-radius: 18px; }
  .cb-input input, .cb-auth-card button[type="submit"] { font-size: 16px; }
}
