@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --bg-white: #ffffff;
  --topbar-bg: #075c98;
  --topbar-txt-color: #000000;
  --header-bg: #ffffff;
  --header-txt-color: #000000;
  --tts-buttton-bg: #ff6423;
  --tts-buttton-bg1: #e04e12;
  --tts-buttton-txt: #ffffff;
  --tts-buttton-txt1: #ffffff;
  --footer-Bg: #075c98;
  --error-color: #e74c3c;
  --input-border-focus: #2c7be0;
  --radius: 10px;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  --transition: all 0.2s ease-in-out;
}

.light-background {
  background-color: color-mix(in srgb, var(--tts-buttton-bg1), transparent 92%);
}

* {
  box-sizing: border-box;
}

body {
  color: #212529;
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

a {
  color: var(--tts-buttton-bg);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--tts-buttton-bg), black 25%);
  text-decoration: none;
}

section,
.section {
  padding: 60px 0;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  width: 700px;
  max-width: 100%;
  margin: auto;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  color: var(--header-txt-color);
}

.section-title p {
  margin-bottom: 0;
}

.hide {
  display: none !important;
}

/* ---------- Validation error text (jQuery Validation plugin) ---------- */
.help-block.form-error,
span.help-block {
  display: block;
  color: var(--error-color);
  font-size: 12px;
  margin-top: 4px;
}

/* ================= LOGIN LAYOUT ================= */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.login-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.login-card {
  background: color-mix(in srgb, var(--bg-white), transparent 5%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 460px;
  padding: 38px 35px 30px;
  transition: 0.3s;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- LOGO ---------- */
.logo-wrapper {
  text-align: center;
  margin-bottom: 25px;
}

.logo-wrapper .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wrapper .logo-icon i {
  font-size: 38px;
  color: var(--tts-buttton-txt);
  background: linear-gradient(135deg, var(--tts-buttton-bg), color-mix(in srgb, var(--tts-buttton-bg), black 30%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--tts-buttton-bg), transparent 70%));
}

.logo-wrapper .logo-icon .logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--header-txt-color);
}

.logo-wrapper .logo-icon .logo-text span {
  color: var(--tts-buttton-bg);
}

.logo-wrapper .tagline {
  font-size: 12px;
  color: #6a7a8a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.logo-wrapper .logo-icon img.login_logo {
  max-width: 150px;
  height: auto;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.main-header {
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.main-header .main-navbar {
    min-height: 68px;
    padding: 0;
}

.main-header .main-navbar>.container {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 0 30px;
    gap: 25px;
}

.main-header .navbar-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.main-header .navbar-logo {
    width: auto;
    max-width: 190px;
    height: 46px;
    object-fit: contain;
    display: block !important;
}
/* ---------- TABS (unused currently but kept) ---------- */
.tabs {
  display: flex;
  background: #f0f2f7;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #7a7f8a;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
  background: transparent;
  border: none;
}

.tab.active {
  background: var(--bg-white);
  color: var(--header-txt-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- FORM ---------- */
.login-inner-form h3 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--header-txt-color);
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i.fas-icons {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab0bc;
  font-size: 16px;
  transition: 0.3s;
  pointer-events: none;
}

.input-wrapper input,
.form-control {
  width: 100%;
  padding: 12px 15px 12px 46px;
  border: 2px solid #e8ecf2;
  border-radius: 10px;
  font-size: 14px;
  background: #fafbfc;
  transition: 0.3s;
  outline: none;
  color: #1a2a3a;
}

#otpId .input-wrapper input {
  padding-left: 46px;
}

.input-wrapper input:focus,
.form-control:focus {
  border-color: var(--input-border-focus);
  background: var(--bg-white);
  box-shadow: none;
}

.input-wrapper input:focus~i.fas-icons,
.input-wrapper input:focus+i.fas-icons {
  color: var(--input-border-focus);
}

.input-wrapper input::placeholder {
  color: #aab0bc;
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aab0bc;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: 0.3s;
}

.toggle-password:hover {
  color: var(--tts-buttton-bg);
}

.password-toggle-icon {
  line-height: 1;
}

/* ---------- CHECKBOX ---------- */
.trustable-device-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  font-size: 13px;
  color: #5a6a7a;
}

.trustable-device-checkbox .form-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--tts-buttton-bg);
  cursor: pointer;
}

.trustable-device-checkbox .form-check-label {
  cursor: pointer;
  margin: 0;
}

/* ---------- BUTTON ---------- */
.btn-signin {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--tts-buttton-bg) 0%, color-mix(in srgb, var(--tts-buttton-bg), black 30%) 100%);
  color: var(--tts-buttton-txt);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-signin:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tts-buttton-bg), black 30%) 0%, var(--tts-buttton-bg) 100%);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tts-buttton-bg), transparent 65%);
  transform: translateY(-1px);
}

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

.btn-signin:disabled,
.loginbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loginbtn {
  width: 100%;
}

/* ---------- LOADER ---------- */
.loader {
  width: 18px;
  height: 18px;
  border: 3px solid color-mix(in srgb, var(--tts-buttton-bg), transparent 75%);
  border-top-color: var(--tts-buttton-bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 8px auto 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- OTP ---------- */
.otp-box {
  min-height: 18px;
  margin: 8px 0;
}

.otp-box .meesage_text {
  font-size: 13px;
  color: var(--tts-buttton-bg);
  font-weight: 500;
}

.verify_otp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.verify_otp a#resend_otp {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- LINKS ROW ---------- */
.links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 5px;
  font-size: 13px;
}

.links-row a {
  color: var(--tts-buttton-bg);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.links-row a:hover {
  text-decoration: underline;
}

.forgot_passwd,
.forgotpasswd {
  display: inline-flex;
  align-items: center;
}

/* ---------- SUPPORT ---------- */
.support-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #eef1f6;
  text-align: center;
}

.support-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: #5a6a7a;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.support-section .support-details {
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.8;
}

.support-section .support-details strong {
  color: var(--header-txt-color);
}

.support-section .support-details a {
  color: var(--tts-buttton-bg);
  text-decoration: none;
  font-weight: 500;
}

.support-section .support-details a:hover {
  text-decoration: underline;
}

.support-section .support-details .phone {
  font-size: 16px;
  font-weight: 600;
  color: color-mix(in srgb, var(--tts-buttton-bg), black 20%);
}

/* ---------- FOOTER LINKS ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin: 16px 0 10px;
  font-size: 12px;
}

.footer-links a {
  color: #8a94a6;
  text-decoration: none;
  transition: 0.2s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--tts-buttton-bg);
}

/* ---------- POWERED BY ---------- */
.powered {
  text-align: center;
  font-size: 11px;
  color: #b0b8c6;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.powered strong {
  color: #5a6a7a;
  font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .login-card {
    padding: 28px 22px 24px;
    border-radius: 12px;
  }

  .links-row {
    flex-direction: column;
    align-items: flex-start;
  }
}



/*==================================================
            REGISTRATION SECTION
==================================================*/
.register-wrapper.login-wrapper .login-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}


.register-wrapper.login-wrapper .input-wrapper input,
.register-wrapper.login-wrapper .form-control {
  padding: 12px 15px 12px 15px;
}

.register-wrapper.login-wrapper h6 {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  color: var(--topbar-bg);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.register-wrapper.login-wrapper h6 .text-danger {
  font-weight: 400;
  margin-left: 4px;
  font-size: 13px;
  color: var(--error-color);
}

/* select2 tweak so it matches height */
.select_search+.select2-container .select2-selection--single {
  height: 46px !important;
  border: 2px solid #e8ecf2 !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background-color: var(--bg-white) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  color: var(--header-txt-color) !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

/* select2 open dropdown (search box + results list) */
.select2-dropdown {
  border: 2px solid #e8ecf2;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 3000;
}

.select2-search--dropdown {
  padding: 8px;
  background: var(--bg-white);
}

.select2-search--dropdown .select2-search__field {
  height: 40px;
  padding: 8px 12px;
  border: 2px solid #e8ecf2;
  border-radius: 6px;
  font-size: 13px;
  color: var(--header-txt-color);
  outline: none;
  margin: 0;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(44, 123, 224, 0.2);
}

.select2-results__options {
  max-height: 260px;
  overflow-y: auto;
}

.select2-container--default .select2-results__option {
  padding: 10px 15px;
  font-size: 13px;
  color: var(--header-txt-color);
  /* collapse any stray whitespace/newlines coming from server-rendered
     option text so entries don't render with large internal gaps */
  white-space: normal;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--tts-buttton-bg);
  color: var(--tts-buttton-txt);
}

.select2-container--default .select2-results__option--selected {
  background: rgba(7, 92, 152, 0.1);
  color: var(--header-txt-color);
  font-weight: 600;
}

.select2-results__option[role="group"] .select2-results__group {
  color: var(--topbar-bg);
  font-weight: 600;
}

/* thin themed scrollbar for the results list (webkit) */
.select2-results__options::-webkit-scrollbar {
  width: 8px;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background: var(--topbar-bg);
  border-radius: 4px;
}

.form-text {
  font-size: 12px;
  color: var(--topbar-txt-color);
  opacity: 0.7;
  margin-top: 4px;
}

.register-wrapper.login-wrapper .register_btn {
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tts-buttton-txt);
  background: var(--tts-buttton-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.register-wrapper.login-wrapper .register_btn:hover:not(:disabled) {
  color: var(--tts-buttton-txt1);
  background: var(--tts-buttton-bg1);
  transform: translateY(-1px);
}

.register-wrapper.login-wrapper .register_btn:disabled {
  background: var(--tts-buttton-bg);
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.register-wrapper.login-wrapper .register_submit {
  min-width: 220px;
  height: 50px;
  font-size: 15px;
  border-radius: 25px;
  letter-spacing: 0.3px;
  background: var(--tts-buttton-bg1);
  color: var(--tts-buttton-txt1);
}

.register-wrapper.login-wrapper .register_submit:hover:not(:disabled) {
  background: var(--tts-buttton-bg);
  color: var(--tts-buttton-txt);
}

/* ---------- Verified / feedback states ---------- */
.valid-feedback,
.invalid-feedback {
  font-size: 13px;
  display: none;
}

.valid-feedback.d-block,
.invalid-feedback.d-block {
  display: block;
}

.valid-feedback span {
  color: var(--tts-buttton-bg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.valid-feedback span::before {
  content: "\2713";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: var(--tts-buttton-bg);
  color: var(--tts-buttton-txt);
  font-size: 11px;
}

.invalid-feedback label {
  color: var(--tts-buttton-bg1);
  cursor: pointer;
  font-weight: 500;
}

.invalid-feedback label:hover {
  text-decoration: underline;
}

[mobile-verified-div],
[email-verified-div],
[whatsapp-verified-div],
[gst-verified-div] {
  align-items: center;
  height: 46px;
}