/* ==================================================
   TIFFINWORLD — VENDOR AUTHENTICATION (LOGIN & REGISTER)
   ================================================== */

/* Main Containers */
.vendor-auth-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(135deg, #F9FAFF 0%, #E8F3E5 40%, #F1F4F9 100%);
  min-height: calc(100vh - 200px);
  position: relative;
  overflow: hidden;
}

.vendor-auth-container {
  max-width: 1220px;
  margin: 0 auto;
}

/* ==================================================
   1. VENDOR LOGIN PAGE STYLES
   ================================================== */
.vendor-login-card {
  background-color: var(--tw-white);
  border: 1px solid var(--tw-light-blue);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(59, 105, 42, 0.08);
}

/* Left Image Panel */
.vendor-login-image-panel {
  position: relative;
  min-height: 700px;
  background-image: url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?q=80&w=1000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
}

.vendor-login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 30, 10, 0.45) 0%, rgba(10, 30, 10, 0.70) 100%);
  z-index: 1;
}

.vendor-login-image-content {
  position: relative;
  z-index: 2;
}

/* Partner Portal Badge */
.vendor-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: #B7F29B;
  color: #1A3E0C;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Image Editorial Titles */
.vendor-hero-title-light {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 46px;
  color: var(--tw-white);
  line-height: 1.15;
  margin: 0;
  display: block;
}

.vendor-hero-title-orange {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  color: var(--tw-orange);
  line-height: 1.15;
  margin-top: 4px;
  margin-bottom: 20px;
  display: block;
}

.vendor-hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 420px;
  margin: 0;
}

/* Right Form Panel */
.vendor-login-form-panel {
  background-color: var(--tw-white);
  padding: 65px 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vendor-form-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  color: var(--tw-green);
  line-height: 1.15;
  margin-bottom: 6px;
  text-align: center;
}

.vendor-form-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--tw-text-grey);
  margin-bottom: 32px;
  text-align: center;
}

/* Segmented Control Switch */
.vendor-segmented-control {
  display: flex;
  background-color: var(--tw-section-bg);
  border-radius: 12px;
  padding: 5px;
  height: 52px;
  margin-bottom: 28px;
}

.vendor-seg-tab {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--tw-text-grey);
  border-radius: 9px;
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendor-seg-tab.active {
  background-color: var(--tw-white);
  color: var(--tw-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Form Controls & Labels */
.vendor-field-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #4F554B;
  margin-bottom: 6px;
  display: block;
}

.vendor-password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vendor-forgot-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--tw-orange);
  text-decoration: none;
  transition: color var(--transition-base);
}

.vendor-forgot-link:hover {
  color: #e06f00;
  text-decoration: underline;
}

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

.vendor-input-icon {
  position: absolute;
  left: 16px;
  color: var(--tw-grey);
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}

.vendor-eye-toggle {
  position: absolute;
  right: 16px;
  color: var(--tw-grey);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition: color var(--transition-base);
}

.vendor-eye-toggle:hover {
  color: #333333;
}

.vendor-control {
  width: 100%;
  height: 56px;
  background-color: var(--tw-section-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 16px 0 48px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #333333;
  transition: all var(--transition-base);
  outline: none;
}

.vendor-control-noicon {
  padding-left: 16px;
}

.vendor-control-password {
  padding-right: 48px;
}

.vendor-control::placeholder {
  color: var(--tw-grey);
  opacity: 0.8;
}

.vendor-control:focus {
  background-color: var(--tw-white);
  border-color: var(--tw-light-blue);
  box-shadow: 0 0 0 3px rgba(177, 207, 255, 0.20);
}

.vendor-control.is-invalid {
  border-color: #dc6b6b !important;
  background-color: #fff5f5 !important;
}

/* OTP Container & 6 Box Layout */
.auth-otp-wrapper {
  width: 100%;
  height: 76px;
  background-color: var(--tw-section-bg);
  border-radius: 10px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  padding: 10px 14px;
}

.auth-otp-box,
.vendor-otp-box {
  width: 38px !important;
  max-width: 40px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  background-color: var(--tw-white);
  border: 1px solid var(--tw-grey);
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--tw-green);
  outline: none;
  transition: all var(--transition-base);
  padding: 0 !important;
}

.auth-otp-box:focus,
.vendor-otp-box:focus {
  background-color: var(--tw-white);
  border-color: var(--tw-green);
  box-shadow: 0 0 0 3px rgba(59, 105, 42, 0.18);
}

/* Custom Checkbox */
.vendor-remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 26px;
  user-select: none;
}

.vendor-custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--tw-grey);
  border-radius: 4px;
  background-color: var(--tw-section-bg);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.vendor-custom-checkbox:checked {
  background-color: var(--tw-green);
  border-color: var(--tw-green);
}

.vendor-custom-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--tw-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vendor-remember-label {
  font-family: var(--font-body);
  font-size: 15px;
  color: #4B4B43;
  cursor: pointer;
  margin: 0;
}

/* Submit Button */
.btn-vendor-submit {
  width: 100%;
  height: 58px;
  background-color: var(--tw-green);
  color: var(--tw-white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(59, 105, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-vendor-submit:hover {
  background-color: var(--tw-green-hover);
  color: var(--tw-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 105, 42, 0.24);
}

.btn-vendor-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Bottom Divider & Link */
.vendor-bottom-divider {
  border-bottom: 1px solid var(--tw-light-blue);
  margin-top: 28px;
  margin-bottom: 24px;
}

.vendor-bottom-link-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--tw-text-grey);
  text-align: center;
  margin: 0;
}

.vendor-bottom-link {
  font-weight: 600;
  color: var(--tw-orange);
  text-decoration: none;
  transition: color var(--transition-base);
}

.vendor-bottom-link:hover {
  color: #e06f00;
  text-decoration: underline;
}

/* ==================================================
   2. VENDOR REGISTRATION PAGE STYLES
   ================================================== */
.vendor-register-left {
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vendor-badge-excellence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: #E8F3E5;
  color: var(--tw-green);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.vendor-reg-title-green {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 56px;
  color: var(--tw-green);
  line-height: 1.1;
  margin: 0;
  display: block;
}

.vendor-reg-title-orange {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 56px;
  color: var(--tw-orange);
  line-height: 1.1;
  margin-top: 2px;
  margin-bottom: 24px;
  display: block;
}

.vendor-reg-desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #4F554B;
  max-width: 500px;
  margin-bottom: 38px;
}

/* Benefit Cards Grid */
.vendor-benefit-grid {
  display: flex;
  gap: 18px;
  max-width: 520px;
}

.vendor-benefit-card {
  flex: 1;
  background-color: var(--tw-section-bg);
  border: 1px solid var(--tw-light-blue);
  border-radius: 12px;
  padding: 24px 22px;
}

.vendor-benefit-icon {
  font-size: 26px;
  color: var(--tw-green);
  margin-bottom: 12px;
  display: block;
}

.vendor-benefit-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--tw-green);
  margin-bottom: 6px;
}

.vendor-benefit-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--tw-text-grey);
  line-height: 1.5;
  margin: 0;
}

/* Vendor Registration Form Card */
.vendor-register-card {
  background-color: var(--tw-white);
  border: 1px solid var(--tw-light-blue);
  border-radius: 22px;
  padding: 48px 44px;
  max-width: 490px;
  width: 100%;
  margin-left: auto;
  box-shadow: 0 15px 45px rgba(59, 105, 42, 0.08);
}

.vendor-reg-form-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--tw-green);
  text-align: center;
  margin-bottom: 4px;
}

.vendor-reg-form-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--tw-text-grey);
  text-align: center;
  margin-bottom: 28px;
}

/* ==================================================
   RESPONSIVE RULES
   ================================================== */
@media (max-width: 991.98px) {
  .vendor-login-image-panel {
    min-height: 340px;
    padding: 36px 30px;
  }
  
  .vendor-login-form-panel {
    padding: 42px 36px;
  }
  
  .vendor-hero-title-light {
    font-size: 36px;
  }
  
  .vendor-hero-title-orange {
    font-size: 40px;
  }
  
  .vendor-register-left {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .vendor-reg-title-green,
  .vendor-reg-title-orange {
    font-size: 44px;
  }
  
  .vendor-register-card {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .vendor-auth-section {
    padding: 30px 0 50px 0;
  }

  .vendor-login-card {
    border-radius: 16px;
  }
  
  .vendor-login-image-panel {
    min-height: 280px;
    padding: 28px 22px;
  }
  
  .vendor-hero-title-light {
    font-size: 30px;
  }
  
  .vendor-hero-title-orange {
    font-size: 34px;
    margin-bottom: 12px;
  }
  
  .vendor-hero-desc {
    font-size: 14px;
  }
  
  .vendor-login-form-panel {
    padding: 32px 22px;
  }
  
  .vendor-form-title {
    font-size: 28px;
  }
  
  .vendor-control {
    height: 52px;
    font-size: 15px;
  }
  
  .btn-vendor-submit {
    height: 52px;
    font-size: 16px;
  }
  
  .vendor-reg-title-green,
  .vendor-reg-title-orange {
    font-size: 36px;
  }
  
  .vendor-benefit-grid {
    flex-direction: column;
  }
  
  .vendor-register-card {
    padding: 32px 22px;
    border-radius: 16px;
  }
}

/* Phone Input Group (country code + number) */
.tw-phone-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tw-phone-group .vendor-control {
  flex: 1;
  width: auto;
  min-width: 0;
}

.tw-country-code-select {
  height: 56px;
  background-color: var(--tw-section-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 26px 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--tw-green);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%233B692A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  flex-shrink: 0;
  min-width: 90px;
  transition: all var(--transition-base);
}

.tw-country-code-select:focus {
  background-color: var(--tw-white);
  border-color: var(--tw-green);
  box-shadow: 0 0 0 3px rgba(59, 105, 42, 0.15);
}
