/* components/rd-auth.css */
/* AUTH — Split Screen Design */
*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
  min-height: 100vh;
  margin: 0;
  background: var(--rd-bg-page);
  font-family: var(--rd-font);
  display: flex;
  align-items: stretch;
}

.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: flex-start;
}

.auth-panel-left {
  flex: 1;
  background: linear-gradient(145deg, #fff8f3 0%, #fff1e6 50%, #fef3e2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.auth-panel-left::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.auth-panel-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 360px;
}

.auth-brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  text-decoration: none;
}

.auth-brand-logo img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 36px rgba(249,115,22,0.25);
}

.auth-brand-logo span {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.auth-brand-logo span em {
  color: var(--rd-primary);
  font-style: normal;
}

.auth-brand h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

.auth-brand h2 span {
  color: var(--rd-primary);
}

.auth-brand p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 40px;
}

.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 13px;
  color: #64748b;
}

.auth-features li:last-child { border-bottom: none; }

.auth-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rd-primary);
  flex-shrink: 0;
}

.auth-panel-right {
  width: 480px;
  flex-shrink: 0;
  background: #ffffff;
  border-left: 1px solid var(--rd-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 44px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.auth-split--wide .auth-panel-right {
  width: 520px;
}

.auth-form-head {
  width: 100%;
  margin-bottom: 32px;
}

.auth-form-head h1 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--rd-text-primary);
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}

.auth-form-head p {
  font-size: 13.5px;
  color: var(--rd-text-muted);
  margin: 0;
}

.auth-section {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--rd-text-muted);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rd-border);
  width: 100%;
}

.auth-section:first-of-type { margin-top: 0; }

.auth-row {
  width: 100%;
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rd-text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.auth-row input[type="text"],
.auth-row input[type="email"],
.auth-row input[type="password"],
.auth-row input[type="tel"],
.auth-row input[type="file"],
.auth-row textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--rd-bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--rd-radius-md);
  color: var(--rd-text-primary);
  font-size: 14px;
  font-family: var(--rd-font);
  outline: none;
  transition: var(--rd-transition);
  box-sizing: border-box;
}

.auth-row input:focus,
.auth-row textarea:focus {
  border-color: var(--rd-primary);
  background: rgba(249,115,22,0.03);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.10);
}

.auth-row input::placeholder,
.auth-row textarea::placeholder {
  color: var(--rd-text-muted);
  font-size: 13px;
}

.auth-row textarea {
  resize: vertical;
  min-height: 88px;
}

.auth-row input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--rd-text-muted);
}

.pw-wrap { position: relative; }

.pw-wrap input { padding-right: 70px !important; }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--rd-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--rd-transition);
  font-family: var(--rd-font);
  text-transform: uppercase;
}

.pw-toggle:hover { color: var(--rd-primary); }

.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--rd-primary);
  color: #fff;
  border: none;
  border-radius: var(--rd-radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--rd-font);
  cursor: pointer;
  transition: var(--rd-transition);
  margin-top: 8px;
  display: block;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.auth-submit:hover {
  background: var(--rd-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.30);
}

.auth-note {
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rd-border);
  padding-top: 20px;
}

.auth-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: var(--rd-text-muted);
}

.auth-note-row:last-child { border-bottom: none; }

.auth-note-row a {
  color: var(--rd-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--rd-transition);
  font-size: 13px;
}

.auth-note-row a:hover { color: var(--rd-primary-hover); }

.auth-note-row span {
  color: var(--rd-text-muted);
  font-size: 13px;
}

.auth-error {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.20);
  border-radius: var(--rd-radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  width: 100%;
}

.auth-error ul {
  list-style: none;
  margin: 0; padding: 0;
}

.auth-error ul li {
  font-size: 13px;
  color: #dc2626;
  padding: 2px 0;
}

.auth-error ul li::before {
  content: '✕  ';
  color: #ef4444;
}

.auth-success {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.20);
  border-radius: var(--rd-radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #16a34a;
  text-align: center;
  width: 100%;
}

.login-message {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--rd-radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}

.login-message.error {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.20);
  color: #dc2626;
}

.login-message.pending {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.25);
  color: #92400e;
}

.terms-wrap {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  width: 100%;
}

.terms-wrap label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--rd-text-primary);
  margin-bottom: 10px;
}

.terms-wrap input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--rd-primary);
  flex-shrink: 0;
}

.terms-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.terms-list li {
  padding: 3px 0;
  font-size: 12px;
  color: var(--rd-text-muted);
}

.message {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--rd-radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}

.message.success {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.20);
  color: #16a34a;
}

.iti { width: 100%; }
.iti__flag-container { border-right: 1px solid var(--rd-border); }
.iti input {
  background: var(--rd-bg-surface) !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: var(--rd-text-primary) !important;
}

@media (max-width: 900px) {
  .auth-split { flex-direction: column; }

  .auth-panel-left {
    padding: 36px 28px;
    min-height: auto;
  }

  .auth-brand h2 { font-size: 22px; }
  .auth-features { display: none; }

  .auth-panel-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--rd-border);
    padding: 36px 24px 48px;
  }

  .auth-split--wide .auth-panel-right { width: 100%; }
}

@media (max-width: 480px) {
  .auth-panel-left { padding: 28px 20px; }
  .auth-panel-right { padding: 28px 18px 40px; }
  .auth-brand-logo img { width: 48px; height: 48px; }
  .auth-brand-logo span { font-size: 17px; }
}
    /* Custom Fix for intl-tel-input dropdown appearance */
    .iti { width: 100%; }
    .iti__country-list {
        max-width: 300px; /* Prevents it from being too wide */
        white-space: normal;
        background-color: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 4px;
        z-index: 9999;
    }
    .iti__country {
        padding: 8px 10px;
        font-size: 14px;
    }
    .iti__flag-container {
        padding: 2px;
    }
    /* Ensure the input itself follows the theme's style */
    #phone_display {
        padding-left: 52px !important; /* Adjust based on dial code */
    }