/* ============================================================
   LOGIN 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: 480px;
  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;
}

/* 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;
}

.auth-forgot-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #8B1D24;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.auth-forgot-link:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

/* Password Toggle Icon inside input */
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
  z-index: 5;
}

.password-toggle-btn:hover {
  color: #8B1D24;
}

.password-toggle-btn i.material-icons {
  font-size: 20px;
}

/* 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);
}

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

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

/* 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;
}

.auth-btn-resend {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-btn-resend:not(:disabled) {
  color: #8B1D24;
  border-color: #8B1D24;
}

.auth-btn-back {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-btn-back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.auth-btn-back i.material-icons {
  font-size: 18px;
}

/* 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;
}

/* Legacy & Utility Compatibility */
.btn-full-width {
  width: 100%;
}
.btn-resend-otp {
  width: 100%;
  margin-top: 12px;
}
.btn-back-login {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
}
