* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
  color: #1e293b;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.brand {
  margin-bottom: 20px;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand h2 {
  color: #1a73e8;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-tagline {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.lang-switch-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 20px;
}

.lang-selector-dropdown {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}

.status-pill.online {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-pill.offline {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.role-selector {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.role-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.role-btn.active {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 18px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 4px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.input-group input,
.input-group select {
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #1a73e8;
}

/* Amazon/Google Style Show/Hide Password Wrapper */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.pwd-toggle-btn:hover {
  color: #1a73e8;
}

.pwd-toggle-btn svg {
  pointer-events: none;
}

.form-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.link-btn {
  font-size: 12px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}

.link-btn:hover {
  text-decoration: underline;
}

.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  font-size: 12px;
  color: #475569;
}

.terms-group input {
  margin-top: 2px;
  accent-color: #1a73e8;
}

.terms-group a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: underline;
}

.submit-btn {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
  transition: transform 0.1s;
}

.submit-btn:active {
  transform: scale(0.98);
}

.secondary-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-theme-btn {
  background: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.otp-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: #1e40af;
}

.admin-notice {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-portal-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
}

.admin-link-btn {
  background: none;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-link-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.alert-box {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  padding: 20px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}

.modal-content-scroll {
  overflow-y: auto;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* Document Uploads & Verification Extensions */
.doc-upload-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.doc-notice-badge {
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  background: #dbeafe;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: inline-block;
}

.reject-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.reject-btn:active {
  opacity: 0.8;
}

.global-online-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn-online {
  background: #10b981;
  color: #ffffff;
}

.btn-offline {
  background: #64748b;
  color: #ffffff;
}

.verification-banner {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.banner-pending {
  background: #fef3c7;
  color: #92400e;
}

.banner-banned {
  background: #fee2e2;
  color: #991b1b;
}

.hidden {
  display: none !important;
}
