/* ===================================================================
   PRAMUKH BUSINESS - AUTHENTICATION (LOGIN & REGISTER) STYLESHEET
   File: css/auth.css
   Company: Pramukh Easy Sale Marketing LLP
   Theme: Royal Corporate Blue (#0A2E5C), Deep Navy (#061F40), Vibrant Orange (#F58220)
   =================================================================== */

/* --- 1. AUTH PAGE LAYOUT --- */
.auth-page-wrapper {
  min-height: calc(100vh - 140px);
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}

.auth-page-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #061F40 0%, #0A2E5C 60%, #0E3B75 100%);
  border-bottom: 3px solid var(--accent-orange);
  z-index: 1;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10, 46, 92, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}

/* For Register page with wider multi-step form */
.auth-container.register-container {
  max-width: 1160px;
  grid-template-columns: 1fr 1.55fr;
}

/* --- 2. LEFT BRANDING & BENEFITS PANEL --- */
.auth-sidebar-panel {
  background: linear-gradient(145deg, #061F40 0%, #0A2E5C 50%, #082852 100%);
  color: #FFFFFF;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-sidebar-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 130, 32, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(22, 78, 150, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.auth-sidebar-content {
  position: relative;
  z-index: 2;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 28px;
}

.auth-sidebar-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.auth-sidebar-title span {
  color: var(--accent-orange);
}

.auth-sidebar-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 32px;
}

.auth-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.auth-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 130, 32, 0.18);
  border: 1px solid rgba(245, 130, 32, 0.4);
  color: var(--accent-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-sidebar-footer {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-sidebar-footer i {
  color: #10B981;
  font-size: 1.1rem;
}

/* --- 3. RIGHT AUTHENTICATION CARD --- */
.auth-form-panel {
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.auth-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-card-subtitle a {
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
}

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

/* --- 4. FORM ELEMENTS & MODERN INPUTS --- */
.auth-form-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.auth-label span.req {
  color: var(--accent-red);
}

.auth-label .forgot-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
}

.auth-label .forgot-link:hover {
  text-decoration: underline;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.auth-control {
  width: 100%;
  padding: 13px 16px 13px 46px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.auth-control:focus {
  background: #FFFFFF;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
}

.auth-control:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--accent-orange);
}

/* Password Toggle Eye Button */
.auth-toggle-pwd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition-fast);
}

.auth-toggle-pwd:hover {
  color: var(--primary-navy);
}

/* Phone input with country code */
.auth-phone-group {
  display: flex;
}

.auth-country-code {
  padding: 0 14px;
  background: #E2E8F0;
  border: 1.5px solid #CBD5E1;
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.auth-phone-group .auth-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 16px;
}

/* Remember me & Options */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

/* Submit Action Button */
.btn-auth-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(245, 130, 32, 0.32);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 130, 32, 0.45);
}

/* Switch auth text bottom */
.auth-switch-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-switch-footer a {
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
}

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

/* Feedback Alert Card */
.auth-feedback-card {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-feedback-card.active-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
}

.auth-feedback-card.active-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

/* --- 5. REGISTER PAGE SPECIFIC STYLES --- */
.register-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Sponsor Verification Box */
.sponsor-verification-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
  transition: all var(--transition-fast);
}

.sponsor-verification-box.verified {
  background: #F0FDF4;
  border-color: #22C55E;
  border-style: solid;
}

.sponsor-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803D;
  margin-top: 6px;
}

/* Placement radio buttons */
.placement-options {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.placement-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.placement-radio-label input[type="radio"] {
  accent-color: var(--accent-orange);
}

.placement-radio-label:has(input:checked) {
  border-color: var(--accent-orange);
  background: rgba(245, 130, 32, 0.08);
  color: var(--accent-orange-dark);
}

/* Product Package Cards on Register */
.packages-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.package-choice-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.package-choice-card:hover {
  border-color: rgba(245, 130, 32, 0.5);
}

.package-choice-card:has(input:checked) {
  border-color: var(--accent-orange);
  background: rgba(245, 130, 32, 0.06);
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.2);
}

.package-choice-card input[type="radio"] {
  position: absolute;
  top: 10px;
  right: 10px;
  accent-color: var(--accent-orange);
}

.package-badge-mini {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.package-name-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.package-price-tag {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
}

/* Step Section Headings inside Register Form */
.form-step-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.step-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.step-title-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

/* --- 6. RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .auth-container,
  .auth-container.register-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .auth-sidebar-panel {
    padding: 36px 30px;
  }

  .auth-form-panel {
    padding: 36px 30px;
  }
}

@media (max-width: 600px) {
  .auth-page-wrapper {
    padding: 30px 12px;
  }

  .auth-form-panel {
    padding: 28px 20px;
  }

  .register-grid-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .packages-selection-grid {
    grid-template-columns: 1fr;
  }

  .auth-sidebar-title {
    font-size: 1.7rem;
  }
}
