/* ============================================================
   REGISTER PAGE — Leva Shubhyog Modern Auth Redesign
   ============================================================ */

.auth-page-wrapper {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px 60px;
  background: radial-gradient(circle at 50% 0%, rgba(139, 29, 36, 0.04) 0%, transparent 65%);
}

.auth-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

/* Tab Switcher: Login / Register */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.auth-tab i.material-icons {
  font-size: 17px;
  color: inherit;
}

.auth-tab:hover:not(.active) {
  color: #0f172a;
}

.auth-tab.active {
  background: #ffffff;
  color: #8B1D24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Main Auth Card */
.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.07);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

/* Community Alert Banner */
.auth-community-badge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-community-badge .acb-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-community-badge .acb-icon i.material-icons {
  font-size: 18px;
}

.auth-community-badge .acb-text {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.4;
}

.auth-community-badge .acb-text strong {
  font-weight: 700;
  color: #78350f;
  margin-bottom: 2px;
}

/* Card Header */
.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(139, 29, 36, 0.08);
  color: #8B1D24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-icon-badge i.material-icons {
  font-size: 26px;
}

.auth-icon-badge.auth-icon-warning {
  background: #fffbeb;
  color: #d97706;
}

.auth-icon-badge.auth-icon-success {
  background: #ecfdf5;
  color: #059669;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Mobile App Notice Pill */
.auth-app-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: #475569;
  text-align: center;
  line-height: 1.4;
}

.auth-app-notice i.material-icons {
  font-size: 18px;
  color: #8B1D24;
  flex-shrink: 0;
}

.auth-app-notice a {
  color: #8B1D24;
  font-weight: 600;
  text-decoration: underline;
}

/* Inputs & Labels */
.app-form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.app-form-label i.material-icons {
  font-size: 16px;
  color: #8B1D24;
}

.valider {
  color: #dc2626;
  font-weight: 700;
}

/* Integrated Phone Input Group */
.auth-phone-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
}

.auth-phone-input-group:focus-within {
  border-color: #8B1D24;
  box-shadow: 0 0 0 3px rgba(139, 29, 36, 0.12);
}

.auth-phone-prefix {
  width: 65px;
  border: none;
  background: #f8fafc;
  border-right: 1.5px solid #e2e8f0;
  text-align: center;
  font-weight: 600;
  color: #475569;
  height: 44px;
  cursor: default;
  outline: none;
}

.auth-phone-number {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  height: 44px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}

/* Primary Action Button */
.auth-btn-primary {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #8B1D24, #6e171c);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(139, 29, 36, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #74161c, #591014);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 29, 36, 0.35);
  color: #ffffff !important;
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-primary i.material-icons {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.auth-btn-primary:hover i.material-icons {
  transform: translateX(3px);
}

/* Terms & Agreement Checkbox */
.auth-agreement {
  margin-top: 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.auth-agreement a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: underline;
}

.register-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #8B1D24;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.cursor-pointer {
  cursor: pointer;
}

/* OTP & Step Layouts */
.auth-otp-input {
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 12px !important;
  text-align: center !important;
  padding-left: 20px !important;
  height: 50px !important;
}

#btn_resend_otp {
  pointer-events: none;
  color: #94a3b8;
  text-decoration: none;
  cursor: not-allowed;
  font-size: 12.5px;
}

#btn_resend_otp.active {
  pointer-events: auto;
  color: #8B1D24;
  cursor: pointer;
  text-decoration: underline;
}

#otp_timer {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  margin-left: 4px;
}

/* Card Bottom Footer */
.auth-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-card-footer a {
  color: #8B1D24;
  font-weight: 600;
  text-decoration: none !important;
}

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

/* Compatibility Classes */
.btn-full-width {
  width: 100%;
}
.btn-create-acc {
  width: 100%;
}
.buttonreg {
  background-color: #8B1D24 !important;
  color: #ffffff !important;
}
