* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #2d8b5c;
  --primary-green-dark: #0d3320;
  --primary-green-light: #3da86d;
  --dark-bg: #000000; 
  --input-bg: #1a1a1a;
  --text-white: #ffffff;
  --text-gray: #999999;
  --border-color: #333333;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--dark-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

/* Register & Login background */
body:not(.login-page),
body.login-page {
  background-image: url('../lucid-origin_Abstract_3D_background_design_in_rich_emerald_green_tones._Smooth_flowing_curves-0.jpg');
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Header – transparent so full background image shows */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}

.header-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-white);
}

.header-title-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
  text-align: center;
  text-shadow: 0 0 2px rgba(45, 139, 92, 0.6);
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.back-btn {
  flex-shrink: 0;
}

.header-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.header-icon:hover {
  opacity: 1;
}

.header-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--text-white);
}

.download-icon-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn-header {
  background: var(--primary-green);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

/* Container */
.auth-container {
  width: 100%;
  max-width: 100%;
  padding: 60px 20px 20px;
  margin: 0 auto;
}

/* Register page: branding + two steps */
.register-container {
  max-width: 420px;
  margin: 0 auto;
}

.register-branding {
  text-align: center;
  margin-bottom: 16px;
}

.register-logo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary-green);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(45, 139, 92, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.register-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.register-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
  margin: 0;
}

/* Login page: logo + welcome text (match SBUX-style image) */
.login-branding {
  text-align: center;
  margin-bottom: 20px;
}
.login-branding .register-logo-wrap {
  margin-bottom: 10px;
}
.login-welcome {
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-white);
  margin: 12px 0 0;
  opacity: 0.95;
}

.register-welcome {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 24px;
  text-align: center;
}

.register-step {
  transition: opacity 0.25s ease;
}

.register-step-hidden {
  display: none !important;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

/* Agreement text: muted grey + bright green links (match image) */
.checkbox-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

/* Links are now siblings of label in .checkbox-group; see .checkbox-group .checkbox-link */

/* Password step: Notice + requirements list */
.password-notice {
  margin-bottom: 24px;
}

.password-notice-title {
  color: var(--text-white);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.password-requirements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-req {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 8px;
}

.password-req .req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: transparent;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.password-req.req-met .req-icon {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

.btn-next-step-2:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Step 3: contact intro + two buttons side by side */
.register-contact-intro {
  color: var(--text-white);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.register-step3-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.register-step3-actions .btn {
  flex: 1;
  margin-bottom: 0;
}

/* Legal pages (Registration Agreement, Privacy Terms) – match SBUX-style size and look */
.legal-body {
  min-height: 100vh;
}
.legal-page .legal-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 0 32px;
}
.legal-main-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.legal-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin: 20px 0 10px;
  line-height: 1.4;
}
.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.legal-content p strong {
  color: var(--text-white);
  font-weight: 700;
}
.legal-content h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-white);
}
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-content .btn {
  margin-top: 20px;
}
.legal-updated {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Messages */
.messages-container {
  margin-bottom: 20px;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  animation: slideIn 0.3s ease-out;
}

.message-error {
  background: rgba(45, 139, 92, 0.2);
  border: 1px solid rgba(45, 139, 92, 0.5);
  color: var(--text-white);
}

.message-success {
  background: rgba(45, 139, 92, 0.25);
  border: 1px solid rgba(45, 139, 92, 0.6);
  color: var(--text-white);
}

.message-info {
  background: rgba(45, 139, 92, 0.2);
  border: 1px solid rgba(45, 139, 92, 0.5);
  color: var(--text-white);
}

@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Form */
form {
  width: 100%;
  max-width: 100%;
}

/* Back Button */
.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
  z-index: 101;
}

.back-btn:hover {
  opacity: 0.8;
}

a.back-btn {
  color: #fff;
  text-decoration: none;
}

.back-btn svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 0.5;
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--text-gray);
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 12px 12px 40px;
  color: var(--text-white);
  font-size: 14px;
  outline: none;
  font-weight: 400;
}

.form-input:focus {
  border-color: var(--primary-green);
}

.form-input::placeholder {
  color: var(--text-gray);
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
}

.password-toggle svg {
  width: 100%;
  height: 100%;
  fill: var(--text-gray);
}

/* WhatsApp Input */
.whatsapp-wrapper {
  display: flex;
  gap: 8px;
}

.whatsapp-prefix {
  flex-shrink: 0;
  width: 120px;
  position: relative;
}

.whatsapp-prefix .input-wrapper {
  display: flex;
  align-items: center;
}

.whatsapp-prefix .form-input {
  padding-left: 40px;
  padding-right: 32px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
}

.whatsapp-prefix .dropdown-icon {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-prefix .dropdown-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--text-white);
  stroke: var(--text-white);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.country-selector-wrapper {
  cursor: pointer;
}

.country-selector-input {
  cursor: pointer;
}

.whatsapp-number {
  flex: 1;
}

.whatsapp-number .form-input {
  padding-left: 12px;
}

/* Country Selector – full-screen bottom sheet (match provided image) */
.country-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.country-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.country-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.country-modal-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 75vh;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  background: #0d3320;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: countryModalSlideUp 0.3s ease-out;
}

@keyframes countryModalSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Header: Select a country (left) | Confirm (right) – white text */
.country-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0d3320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.country-dropdown-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.country-dropdown-confirm {
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.country-dropdown-confirm:hover {
  opacity: 0.9;
}

/* Search: full width, rounded, magnifying glass far right */
.country-search-wrapper {
  position: relative;
  padding: 14px 20px;
  background: #0d3320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.country-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 2;
}

.country-search-icon svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.5);
}

.country-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 44px 12px 16px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

.country-search-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.country-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.country-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  min-height: 0;
  background: #0d3320;
  -webkit-overflow-scrolling: touch;
}

.country-list::-webkit-scrollbar {
  width: 6px;
}

.country-list::-webkit-scrollbar-track {
  background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Each row: country name (left) | dial code + circular check (right) */
.country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}

.country-item:last-child {
  border-bottom: none;
}

.country-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.country-item.selected {
  background: rgba(255, 255, 255, 0.06);
}

.country-item.hidden {
  display: none;
}

.country-item-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.country-item-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}

.country-item-code {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  min-width: 56px;
  text-align: right;
}

/* Circular light green checkmark (like image) */
.country-item-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(144, 238, 144, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  margin-left: 10px;
}

.country-item.selected .country-item-checkbox {
  background: #7acc7a;
  border-color: #7acc7a;
}

.country-item-checkbox::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
  margin: auto;
}

.country-item.selected .country-item-checkbox::after {
  border-color: #0d3320;
  display: block;
  margin-top: -2px;
}

/* Checkbox – label and links are siblings so links are clickable */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 24px;
  margin-top: 8px;
}
.checkbox-group .checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 2px;
}
.checkbox-group .checkbox-link {
  color: #4ade80;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}
.checkbox-group .checkbox-link:hover {
  color: #6ee7a0;
  text-decoration: underline;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: transparent;
  border: 2px solid var(--primary-green);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-custom input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.checkmark {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-green);
  border-radius: 1px;
}

.checkbox-custom input[type="checkbox"]:checked + .checkmark {
  display: block;
}

.checkmark::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label a:not(.checkbox-link) {
  color: rgba(255, 255, 255, 0.72);
}

/* Buttons – compact, good proportion */
.btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  display: inline-block;
  width: auto;
}

.btn-primary {
  background: var(--primary-green);
  color: #ffffff;
  margin-bottom: 10px;
}

.btn-primary:hover {
  background: var(--primary-green-light);
}

.btn-secondary {
  background: var(--input-bg);
  color: var(--text-white);
  border: 1px solid var(--primary-green);
  text-decoration: none;
  display: block;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(45, 139, 92, 0.15);
  border-color: var(--primary-green-light);
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-password a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 13px;
}

/* Language Selector Modal */
.language-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 0;
}

.language-modal.active {
  opacity: 1;
  visibility: visible;
}

.language-modal-content {
  width: 100%;
  max-width: 100%;
  background: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.language-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--dark-bg);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-modal-back {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-white);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.language-modal-back:hover {
  opacity: 1;
}

.language-modal-back svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.language-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-white);
  margin: 0;
  flex: 1;
}

.language-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.language-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: var(--dark-bg);
}

.language-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.language-item.selected {
  background: rgba(45, 139, 92, 0.2);
}

.language-item.selected .language-arrow {
  fill: var(--text-white);
  opacity: 1;
}

.language-item-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.language-flag {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  width: 32px;
  height: 32px;
  text-align: center;
  flex-shrink: 0;
}

.language-name {
  font-size: 16px;
  color: var(--text-white);
  font-weight: 400;
}

.language-arrow {
  width: 20px;
  height: 20px;
  fill: var(--text-gray);
  opacity: 0.6;
}

.language-item:hover .language-arrow {
  opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
  .header {
      padding: 12px 16px;
  }
  
  .header-title {
      font-size: 14px;
  }
  
  .header-title-center {
      font-size: 16px;
  }
  
  .header-actions {
      gap: 10px;
  }
  
  .header-icon {
      width: 20px;
      height: 20px;
  }
  
  .login-btn-header {
      padding: 5px 12px;
      font-size: 12px;
  }
  
  .auth-container {
      padding: 60px 16px 16px;
  }
  
  .country-modal-box {
      height: 80vh;
      max-height: 80vh;
      border-radius: 20px 20px 0 0;
  }
  
  .country-dropdown-header {
      padding: 16px 18px;
  }
  
  .country-search-wrapper {
      padding: 12px 18px;
  }
  
  .country-item {
      padding: 14px 18px;
  }

  /* Mobile tweaks for login/register hero + card so everything shows clearly, no overlap */
  .auth-hero {
      height: 220px;
      background-position: center top;
  }

  .auth-hero-text {
      margin-top: 34px;
      padding: 0 10px 10px;
  }

  .auth-card-wrapper {
      margin-top: 0;
      padding: 16px 14px 20px;
  }

  /* Mobile-specific tweaks for new login/register layout to reduce vertical height */
  .auth-hero {
      height: 140px;
  }

  .auth-hero-text {
      margin-top: 26px;
      padding: 0 10px 8px;
  }

  .auth-card {
      min-height: auto;
      padding: 10px 12px 12px;
  }

  .auth-card .form-group {
      margin-bottom: 8px;
  }

  .auth-card .btn-primary {
      margin-top: 2px;
  }

  .auth-card-footer {
      margin-top: 4px;
  }
}

/* ------------------------------------------------------------------
   New login/register layout – Rin-style blue card UI
   ------------------------------------------------------------------ */

body.login-page,
body.register-page {
  background: #ffffff; /* full-screen white form, no outer gradient visible */
  color: #111827;
}

.auth-screen {
  height: 100vh;              /* lock full viewport height (no page scroll) */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #ffffff;
}

.auth-hero {
  position: relative;
  height: 220px;
  background-image: url('../HVT23.png');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-brand-logo {
  height: 40px;
  width: auto;
  border-radius: 999px;
}

.auth-language-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #0052a3;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.auth-language-pill svg {
  width: 16px;
  height: 16px;
  color: #0052a3;
}

.auth-hero-text {
  margin-top: 40px;
  padding: 0 12px 12px;
  text-shadow: 0 2px 4px rgb(255, 255, 255);
}

.auth-hero-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-hero-subtitle {
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.93;
}

.auth-card-wrapper {
  flex: 1;                    /* takes remaining space under hero */
  display: flex;
  justify-content: center;
  padding: 0;
  margin-top: 0;
  overflow: hidden;           /* prevent outer scrollbars */
}

.auth-card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 0;
  padding: 18px 18px 24px;
  box-shadow: none;
  height: 100%;               /* fill wrapper height only */
  min-height: 0;              /* allow shrinking on small screens */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.auth-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.auth-tab-active {
  color: #0052a3;
}

.auth-tab-active::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #007bff, #004bff);
}

.auth-card .form-group {
  margin-bottom: 14px;
}

.auth-card .form-label {
  display: none;
}

/* OTP layout – Enter Code with badge (register) */
.otp-group {
  margin-top: 4px;
}

.otp-wrapper {
  position: relative;
}

.otp-wrapper .form-input {
  padding-right: 108px; /* space for code badge */
}

.otp-code-box {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e9d3a0; /* captcha-like background */
  color: #374151;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* Phone row for login (+91 | Enter phone number) */
.auth-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-phone-prefix {
  flex-shrink: 0;
  min-width: 90px;
  max-width: 100px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.auth-phone-prefix-code {
  margin-right: 6px;
}

.auth-phone-prefix-divider {
  width: 1px;
  height: 18px;
  background: #d1d5db;
}

.auth-card .input-wrapper {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0 14px;
}

.auth-card .form-input {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 10px 10px 34px;
  color: #111827;
  font-size: 14px;
}

.auth-card .form-input::placeholder {
  color: #9ca3af;
}

.auth-card .input-icon {
  left: 10px;
}

.auth-card .input-icon svg {
  fill: #9ca3af;
}

.auth-card .password-toggle {
  right: 10px;
}

.auth-card .password-toggle svg {
  fill: #9ca3af;
}

.auth-card .btn-primary {
  background: linear-gradient(90deg, #007bff, #004bff);
  border-radius: 999px;
  margin-top: 4px;
  font-size: 15px;
}

.auth-card .btn-primary:hover {
  background: linear-gradient(90deg, #0066dd, #003fe0);
}

.auth-card-footer {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.auth-card-footer a {
  color: #0052a3;
  font-weight: 600;
  text-decoration: none;
}

.auth-card-footer a:hover {
  text-decoration: underline;
}

.auth-card .messages-container {
  margin-bottom: 10px;
}

.auth-card .message {
  font-size: 12px;
}