/*
 * Split-panel auth design shared by every view on layouts/app.blade.php:
 * Login, Register, self-service password reset (email + reset), and the
 * admin/invite password-reset flow (forgot-password +
 * first_login_reset_password). Plain CSS (no framework). Deliberately
 * fixed-palette, no dark mode / theme toggle on these pages - colors are
 * hardcoded rather than pulled from the site's --ecc-* tokens so this
 * never flips with OS/user theme preference.
 */

.auth-body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
}

.auth-page {
  display: flex;
  min-height: 100vh;
}

/* ---------- Branding panel ---------- */
.auth-brand {
  display: none;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  padding: 56px;
  background: linear-gradient(135deg, #14532d 0%, #166534 45%, #16a34a 100%);
}
@media (min-width: 768px) {
  .auth-brand { display: flex; }
}
@media (min-width: 1200px) {
  .auth-brand { width: 58%; }
}

.auth-brand-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ring-deco {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
}
.ring-1 { width: 520px; height: 520px; border-width: 60px; border-color: #4ade80; top: -120px; right: -160px; opacity: .10; }
.ring-2 { width: 380px; height: 380px; border-width: 40px; border-color: #4ade80; top: -60px; right: -100px; opacity: .13; }
.ring-3 { width: 240px; height: 240px; border-width: 28px; border-color: #4ade80; top: 10px; right: -40px; opacity: .18; }
.ring-4 { width: 340px; height: 340px; border-width: 48px; border-color: #16a34a; bottom: -120px; left: -110px; opacity: .14; }
.ring-5 { width: 200px; height: 200px; border-width: 30px; border-color: #4ade80; bottom: -60px; left: -50px; opacity: .20; }

.auth-brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth-brand-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  text-decoration: none;
}
.auth-brand-logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.auth-brand-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth-brand-name {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}
.auth-brand-tag {
  display: block;
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

.auth-brand-heading {
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  max-width: 400px;
  margin: 0 0 18px;
}
.auth-brand-heading span {
  color: #4ade80;
}
.auth-brand-lead {
  color: #bbf7d0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 340px;
  margin: 0;
}

.auth-brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4ade80;
}
.auth-feature-icon svg { width: 16px; height: 16px; }
.feature-icon-1 { background: rgba(74, 222, 128, .18); border: 1px solid rgba(74, 222, 128, .35); }
.feature-icon-2 { background: rgba(22, 163, 74, .22); border: 1px solid rgba(22, 163, 74, .40); }
.feature-icon-3 { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .28); }
.auth-brand-features strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.auth-brand-features small {
  display: block;
  color: #bbf7d0;
  font-size: 12px;
  margin-top: 2px;
}

/* ---------- Form panel ---------- */
.auth-form-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
  padding: 32px 0;
}

.auth-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-mobile-logo img { height: 48px; width: auto; }
@media (min-width: 768px) {
  .auth-mobile-logo { display: none; }
}

.auth-card-header {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
@media (min-width: 768px) {
  .auth-card-header { display: flex; }
}
.auth-card-header img { height: 30px; width: auto; }
.auth-card-header span {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 4px;
}
.auth-subtitle {
  color: #495057;
  font-size: 14px;
  margin: 0 0 26px;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-alert-danger {
  background: rgba(219, 40, 40, .08);
  border: 1px solid rgba(219, 40, 40, .25);
  color: #DB2828;
}
.auth-alert-success {
  background: rgba(40, 167, 69, .08);
  border: 1px solid rgba(40, 167, 69, .25);
  color: #28A745;
}

/* Form fields */
.auth-field { margin-bottom: 20px; }
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 7px;
}
.auth-input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 2px solid #E1E1E1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: #333333;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input::placeholder { color: #495057; }
.auth-input:focus {
  outline: none;
  border-color: #2E9E30;
  box-shadow: 0 0 0 3px rgba(46, 158, 48, .15);
}
.auth-field.has-error .auth-input {
  border-color: #DB2828;
}
.auth-error-text {
  display: block;
  color: #DB2828;
  font-size: 12px;
  margin-top: 6px;
}

.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 46px; }
.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  color: #495057;
}
.auth-password-toggle:hover { color: #333333; }
.auth-password-toggle svg { width: 17px; height: 17px; }
.auth-password-toggle .icon-eye-off { display: none; }
.auth-password-toggle.is-visible .icon-eye { display: none; }
.auth-password-toggle.is-visible .icon-eye-off { display: block; }

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.auth-row-between .auth-label { margin-bottom: 0; }
.auth-inline-link {
  font-size: 12px;
  font-weight: 600;
  color: #2E9E30;
  text-decoration: none;
}
.auth-inline-link:hover { text-decoration: underline; }

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2E9E30;
}
.auth-checkbox-row label {
  font-size: 14px;
  color: #495057;
}

.auth-submit-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #16a34a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
}
.auth-submit-btn:hover { opacity: .92; box-shadow: 0 10px 22px rgba(22, 163, 74, .25); }
.auth-submit-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46, 158, 48, .35); }
.auth-submit-btn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}
.auth-submit-btn:disabled:hover { box-shadow: none; }

.auth-footnote {
  text-align: center;
  font-size: 13px;
  color: #495057;
  margin: 20px 0 0;
}
.auth-footnote a {
  color: #2E9E30;
  font-weight: 600;
  text-decoration: none;
}
.auth-footnote a:hover { text-decoration: underline; }

.auth-copyright {
  text-align: center;
  font-size: 12px;
  color: #495057;
  margin: 32px 0 0;
}

/* Password requirements panel */
.auth-requirements {
  margin-top: 26px;
  border: 1px solid #E1E1E1;
  border-radius: 12px;
  overflow: hidden;
}
.auth-requirements-header {
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #495057;
  background: linear-gradient(90deg, rgba(74, 222, 128, .10), transparent);
  border-bottom: 1px solid #E1E1E1;
}
.auth-requirements-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.auth-requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #495057;
}
.auth-requirement .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-1 { background: #4ade80; }
.dot-2 { background: #16a34a; }
.dot-3 { background: #15803d; }
.dot-4 { background: #14532d; }

@media (max-width: 767px) {
  .auth-form-inner { padding: 16px 0; }
}
