/* Register page — split card, form, meter (loads after landing.css) */

:root {
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
}

.page-register .site-header {
  border-bottom: 1px solid var(--border);
}

/* Solid Login button in header */
.btn-login-header {
  padding: 0.55rem 1.35rem;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-login-header:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

.register-main {
  padding: 2rem 0 3rem;
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.register-wrap {
  max-width: 960px;
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 45, 114, 0.12);
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }
}

/* Left panel */
.auth-panel--visual {
  position: relative;
  min-height: 220px;
  padding: 0;
}

@media (min-width: 900px) {
  .auth-panel--visual {
    min-height: auto;
  }
}

.auth-panel-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #001a44 0%, #003d8f 45%, #38bdf8 100%);
  background-image:
    linear-gradient(165deg, rgba(0, 26, 68, 0.92) 0%, rgba(0, 61, 143, 0.75) 40%, rgba(56, 189, 248, 0.35) 100%),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center 30%;
}

.auth-panel-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
  color: #fff;
}

@media (min-width: 900px) {
  .auth-panel-content {
    padding: 2.5rem;
    justify-content: center;
    padding-bottom: 2.5rem;
  }
}

.auth-panel-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-panel-lead {
  margin: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 22rem;
}

@media (min-width: 900px) {
  .auth-panel-lead {
    margin-bottom: 2.5rem;
  }
}

.auth-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .auth-social-proof {
    margin-top: 0;
  }
}

.auth-avatars {
  display: flex;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auth-avatar:first-child {
  margin-left: 0;
  background-image: linear-gradient(135deg, #93c5fd, #3b82f6);
}

.auth-avatar:last-child {
  background-image: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.auth-social-text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

/* Form panel */
.auth-panel--form {
  padding: 2rem 1.5rem 2.25rem;
}

@media (min-width: 900px) {
  .auth-panel--form {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.auth-form-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.auth-form-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
  border-color: rgba(0, 45, 114, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.08);
}

.input-wrap--password {
  padding-right: 0.35rem;
}

.input-icon {
  flex-shrink: 0;
  color: var(--navy);
  opacity: 0.75;
  display: flex;
}

.form-input {
  flex: 1;
  min-width: 0;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  outline: none;
}

.form-input--date {
  color-scheme: light;
}

.form-input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

.btn-toggle-password {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.btn-toggle-password:hover {
  background: #f3f4f6;
  color: var(--navy);
}

.btn-toggle-password .icon-eye-off {
  display: none;
}

.btn-toggle-password.is-visible .icon-eye {
  display: none;
}

.btn-toggle-password.is-visible .icon-eye-off {
  display: block;
}

.field-hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.field-hint--hidden {
  display: none;
}

.field-hint--success {
  color: var(--success);
}

.field-hint--success::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  border-radius: 50%;
}

.field-hint--error {
  color: var(--danger);
}

.password-meter {
  margin-top: 0.35rem;
}

.password-meter-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 0.35rem;
}

.password-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: background 0.2s;
}

.password-bar.is-weak {
  background: #fb923c;
}

.password-bar.is-medium,
.password-bar.is-strong {
  background: var(--success);
}

.password-strength-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
}

.checkbox-row input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.checkbox-row a {
  color: var(--navy);
  font-weight: 500;
}

.btn-create-account {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-create-account:hover {
  background: var(--navy-dark);
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-social:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Register footer tweaks */
.site-footer--register {
  margin-top: 0;
}

.footer-bar--center p {
  text-align: center;
}

/* Logo styles in css/brand.css */
