/* ================================================================
   Amity India - Authentication Pages Styling (auth.css)
   Split-screen 1/4 Form + 3/4 Background Image Showcase
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --auth-primary: #f36d21;
  --auth-secondary: #28a428;
  --auth-dark: #0f172a;
  --auth-border: #e2e8f0;
  --auth-text: #1e293b;
  --auth-muted: #64748b;
  --auth-card-bg: #ffffff;
}

body.auth-page {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: var(--auth-text);
  overflow-x: hidden;
}

.auth-wrapper {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  position: relative;
}

/* ----------------------------------------------------
   Left Side: Form Area (1/4th - 25% to 30% responsive)
---------------------------------------------------- */
.auth-form-side {
  flex: 0 0 25%;
  min-width: 380px;
  max-width: 440px;
  background: var(--auth-card-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px 35px 25px 35px;
  position: relative;
  z-index: 10;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.06);
  border-right: 1px solid var(--auth-border);
  overflow-y: auto;
}

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

.auth-logo img {
  max-height: 44px;
  width: auto;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  transition: all 0.25s ease;
}

.auth-back-link:hover {
  background: var(--auth-primary);
  color: #ffffff;
}

.auth-body {
  margin: auto 0;
  padding: 10px 0;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.badge-prime {
  background: #fff3eb;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.badge-iba {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-franchise {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--auth-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

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

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.auth-input:focus {
  background-color: #ffffff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(243, 109, 33, 0.15);
}

.auth-input:focus+.auth-input-icon,
.auth-input-group:focus-within .auth-input-icon {
  color: var(--auth-primary);
}

.auth-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  transition: color 0.2s ease;
}

.auth-password-toggle:hover {
  color: var(--auth-text);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 22px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--auth-muted);
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  accent-color: var(--auth-primary);
  width: 15px;
  height: 15px;
}

.auth-forgot-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

.auth-btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--auth-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(243, 109, 33, 0.35);
}

.auth-btn-submit:hover {
  background: #e05d15;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(243, 109, 33, 0.45);
}

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

.auth-btn-iba {
  background: #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.auth-btn-iba:hover {
  background: #15803d;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.auth-btn-franchise {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.auth-btn-franchise:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 22px 0 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 10px;
}

.auth-portal-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-switch-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateX(2px);
}

.auth-switch-item i {
  color: #94a3b8;
  font-size: 11px;
}

.auth-footer {
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}

.auth-bottom-portals {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.auth-portal-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auth-portal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-portal-prime:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #ea580c;
}

.btn-portal-iba:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

.btn-portal-franchise:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.auth-footer-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #16a34a;
  font-weight: 600;
}

/* ----------------------------------------------------
   Right Side: 3/4th Background Image Showcase
---------------------------------------------------- */
.auth-banner-side {
  flex: 1;
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 50px;
}

.auth-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.overlay-prime {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.48) 0%, rgba(30, 41, 59, 0.25) 50%, rgba(243, 109, 33, 0.5) 100%);
}

.overlay-iba {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.48) 0%, rgba(30, 41, 59, 0.25) 50%, rgba(40, 164, 40, 0.5) 100%);
}

.overlay-franchise {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.48) 0%, rgba(17, 24, 39, 0.25) 50%, rgba(37, 99, 235, 0.5) 100%);
}

.auth-banner-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.auth-banner-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.auth-banner-contact:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.auth-banner-bottom {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.auth-glass-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.auth-banner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fb923c;
  margin-bottom: 10px;
}

.auth-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.auth-banner-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.auth-banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}

/* ----------------------------------------------------
   Social Auth Buttons & Divider
---------------------------------------------------- */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
  color: #94a3b8;
}

.auth-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
  background-color: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-btn-google:hover {
  background-color: #f8fafc;
  border-color: #c2c7d0;
  color: #202124;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.auth-btn-google:active {
  transform: translateY(0);
  background-color: #f1f3f4;
}

.auth-btn-google svg,
.auth-btn-google img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----------------------------------------------------
   Responsive Adjustments
---------------------------------------------------- */
@media (max-width: 1200px) {
  .auth-form-side {
    flex: 0 0 32%;
    min-width: 360px;
  }
}

@media (max-width: 992px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-form-side {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 100vh;
    box-shadow: none;
    border-right: none;
    padding: 30px 20px;
  }

  .auth-banner-side {
    display: none;
  }
}