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

:root {
  --login-bg: #f4f7f1;
  --login-card: rgba(255, 255, 255, 0.86);
  --login-card-border: rgba(85, 133, 60, 0.14);
  --login-text: #112015;
  --login-muted: #64748b;
  --login-accent: #5d903a;
  --login-accent-dark: #2f5f1f;
  --login-shadow: 0 24px 80px rgba(18, 46, 21, 0.16);
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html,
body {
  min-height: 100%;
}

#page_wrapper {
  width: 100% !important;
  min-height: 100vh;
}

body {
  margin: 0;
  min-height: 100vh;
  display: block;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
  color: var(--login-text);
}

.container#container {
  position: relative;
  width: min(940px, 100%);
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--login-card);
  border: 1px solid var(--login-card-border);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(14px);
}

.container#container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(93, 144, 58, 0.06), transparent 40%),
    linear-gradient(315deg, rgba(23, 124, 62, 0.04), transparent 45%);
  pointer-events: none;
}

.form-container.sign-in {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.logo-defualt {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 0 0 34px;
}

.logo-defualt img {
  max-width: 170px;
  height: auto;
  display: block;
}

.form-container form {
  margin: 0;
  padding: 56px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.92));
  position: relative;
}

.form-container form::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 24px;
  border: 1px solid rgba(93, 144, 58, 0.08);
  pointer-events: none;
}

.defualt-head {
  margin: 0 0 8px;
  font-size: 42px !important;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--login-text);
}

.form-container span {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--login-muted);
}

.form-container input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 18px;
  margin: 8px 0 10px;
  font-size: 15px;
  color: var(--login-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-container input::placeholder {
  color: #94a3b8;
}

.form-container input:focus {
  border-color: rgba(93, 144, 58, 0.45);
  box-shadow: 0 0 0 4px rgba(93, 144, 58, 0.12);
  transform: translateY(-1px);
}

#phone {
  padding-left: 16px !important;
  letter-spacing: 0.03em;
}

.form-container .text-muted {
  color: var(--login-muted) !important;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}

.form-container .alert {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.defualt-login {
  height: 54px !important;
  width: 100%;
  border: 0;
  border-radius: 16px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--login-accent), #4f7d32);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 18px 30px rgba(93, 144, 58, 0.24);
}

.defualt-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 20px 36px rgba(93, 144, 58, 0.3);
}

.defualt-login:active {
  transform: translateY(0);
}

.defult-login-error {
  background: transparent;
  border: none;
  color: #111;
  font-size: 18px;
  line-height: 1;
}

.logo-defualt {
  position: relative;
}

.logo-defualt::after {
  content: 'Secure phone login';
  display: block;
  margin-top: 18px;
  color: var(--login-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-login-wrap {
  width: min(1320px, calc(100% - 72px));
  margin: 28px auto 48px;
  padding: 0;
}

.modern-login-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  width: 100%;
  border-radius: 30px;
  /* Keep visible so the country dropdown isn't clipped; corners are rounded on the
     child panels below instead. */
  overflow: visible;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(93, 144, 58, 0.14);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(14px);
}

.modern-login-aside {
  position: relative;
  border-radius: 30px 0 0 30px;
  overflow: hidden;
  padding: 52px 56px;
  background:
    linear-gradient(145deg, rgba(93, 144, 58, 0.96), rgba(35, 82, 31, 0.94)),
    url("../../../images/newimage/home/banner/top-bar-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.modern-login-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 33, 18, 0.08), rgba(15, 33, 18, 0.32));
}

.modern-login-aside > * {
  position: relative;
  z-index: 1;
}

.modern-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-login-aside h2 {
  margin: 22px 0 12px;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.modern-login-aside p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}

.modern-login-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.modern-login-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modern-login-point i {
  font-size: 18px;
  color: #fff;
}

.modern-login-main {
  padding: 56px 64px;
  border-radius: 0 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-bar-wrap {
  display: none !important;
}

.modern-login-main .sign-in-form {
  width: 100%;
  border: 0 !important;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.modern-login-main .log-head h3 {
  font-size: 38px;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.modern-login-main .log-head p {
  color: var(--login-muted);
  font-size: 15px;
  margin-bottom: 26px;
}

.modern-login-main .form-control {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 16px;
  font-size: 15px;
  box-shadow: none;
}

.modern-login-main .form-control:focus {
  border-color: rgba(93, 144, 58, 0.45);
  box-shadow: 0 0 0 4px rgba(93, 144, 58, 0.12);
}

.phone-field-wrap {
  position: relative;
  z-index: 5;
  margin-bottom: 18px;
}

.phone-field-wrap label {
  display: block;
  margin-bottom: 10px;
  color: var(--login-text);
  font-size: 15px;
  font-weight: 600;
}

.phone-code-field {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-code-field:focus-within {
  border-color: rgba(93, 144, 58, 0.45);
  box-shadow: 0 0 0 4px rgba(93, 144, 58, 0.12);
}

.phone-code-field__selector {
  position: relative;
}

.country-toggle {
  width: 100%;
  height: 54px;
  border: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px 0 0 16px;
  background: transparent;
  color: var(--login-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.country-toggle:hover,
.country-toggle:focus {
  background: rgba(93, 144, 58, 0.06);
  outline: none;
}

.country-toggle i {
  color: #7c8a72;
  font-size: 12px;
}

.country-flag {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.country-code {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: auto;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.country-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 100;
  width: 320px;
  max-height: 240px;
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(93, 144, 58, 0.14);
  box-shadow: 0 24px 60px rgba(18, 46, 21, 0.16);
  backdrop-filter: blur(14px);

  /* Hidden state — animated open/close */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.country-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.country-search-wrap {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 10px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 72%, rgba(255, 255, 255, 0));
}

.country-search {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  font-size: 14px;
  box-shadow: none;
}

.country-search:focus {
  border-color: rgba(93, 144, 58, 0.45);
  box-shadow: 0 0 0 4px rgba(93, 144, 58, 0.12);
}

.country-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--login-text);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  text-align: left;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.country-option:hover,
.country-option.active {
  background: rgba(93, 144, 58, 0.1);
  transform: translateY(-1px);
}

.country-option__flag {
  font-size: 18px;
}

.country-option__name {
  font-size: 14px;
  font-weight: 600;
}

.country-option__code {
  font-size: 14px;
  font-weight: 700;
  color: var(--login-accent-dark);
}

.phone-local-input {
  width: 100% !important;
  min-width: 0;
  height: 54px;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 0 16px 16px 0 !important;
  background: transparent;
}

.phone-local-input:focus {
  box-shadow: none !important;
  transform: none;
}

.modern-login-main .text-muted {
  color: var(--login-muted) !important;
  font-size: 13px;
  line-height: 1.6;
}

.modern-login-main .submit-btn {
  position: relative;
  z-index: 1;
  height: 54px;
  border-radius: 16px;
  margin-top: 0;
  background: linear-gradient(135deg, var(--login-accent), #4f7d32);
  box-shadow: 0 18px 30px rgba(93, 144, 58, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.modern-login-main .submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 20px 36px rgba(93, 144, 58, 0.3);
}

.modern-login-main .social-area {
  margin-top: 18px;
}

@media (max-width: 991px) {
  .container#container {
    min-height: auto;
    /* Allow the country dropdown to overflow instead of being clipped */
    overflow: visible;
  }

  .modern-login-card {
    overflow: visible;
  }

  .form-container.sign-in {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .logo-defualt {
    justify-content: center;
    padding: 28px 28px 0;
  }

  .form-container form {
    padding: 28px;
  }

  .form-container form::before {
    inset: 14px;
  }

  .modern-login-card {
    grid-template-columns: 1fr;
  }

  .modern-login-main {
    border-radius: 30px;
  }

  .modern-login-aside {
    border-radius: 30px 30px 0 0;
    padding: 36px;
  }

  .modern-login-main {
    padding: 34px;
  }
}

@media (min-width: 1200px) {
  .modern-login-aside {
    padding-right: 44px;
  }

  .modern-login-main {
    padding-left: 52px;
    padding-right: 52px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 12px 10px;
    align-items: flex-start;
  }

  .modern-login-wrap {
    width: calc(100% - 12px);
    margin: 15px auto 30px;
  }

  .modern-login-card {
    border-radius: 24px;
  }

  .modern-login-main {
    padding: 24px 14px;
  }

  .container#container {
    border-radius: 24px;
  }

  .logo-defualt img {
    max-width: 130px;
  }

  .defualt-head {
    font-size: 32px !important;
  }

  .form-container span {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .form-container input,
  .defualt-login {
    height: 50px;
    border-radius: 14px;
  }

  .modern-login-aside h2 {
    font-size: 30px;
  }

  .modern-login-main .log-head h3 {
    font-size: 28px;
  }

  .modern-login-main .form-control,
  .modern-login-main .submit-btn {
    height: 50px;
    border-radius: 14px;
  }

  .country-toggle {
    height: 50px;
    border-radius: 14px 0 0 14px;
  }

  .phone-code-field {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    border-radius: 14px !important;
  }

  .phone-code-field__selector {
    width: auto !important;
  }

  .phone-local-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    border-radius: 0 14px 14px 0 !important;
    padding-left: 14px !important;
  }

  .phone-code-field .form-control {
    margin: 0 !important;
  }

  .country-toggle {
    height: 50px !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    border-right: 1px solid rgba(15, 23, 42, 0.1) !important;
  }

  .country-menu {
    width: min(320px, calc(100vw - 72px));
    max-height: 220px;
  }
}
