/* =========================================================
   Gir Vista Login — Figma tokens (node 587-6105)
   Desktop frame: 1440 × 1024
   ========================================================= */

:root {
  --login-bg: #F8F5EE;
  --login-card-bg: #FFFDFC;
  --login-border: #DED6C3;
  --login-text: #1F2A23;
  --login-muted: #6B6A63;
  --login-primary: #0B2E22;
  --login-gold: #D49B33;
  --login-gold-soft: #E9D9A7;
  --login-font: 'DM Sans', sans-serif;
  --login-logo-font: 'Jost', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.login-page {
  font-family: var(--login-font);
  background: linear-gradient(0deg, #F8F5EE, #F8F5EE), #FFFFFF;
  color: var(--login-text);
  overflow-x: hidden;
}

/* Screen */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(0deg, #F8F5EE, #F8F5EE), #FFFFFF;
}

.login-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  flex: 1 1 auto;
  align-self: stretch;
}

/* ---------- Left panel (Gir forest wildlife) ≈ 795/1440 ---------- */
.login-visual {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  isolation: isolate;
  position: relative;
  flex: 795 1 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.login-visual__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #0B2E22;
  background-image: var(--login-left-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 0;
}

.login-visual__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 46, 34, 0.8) 0%,
    rgba(11, 46, 34, 0.5) 50%,
    rgba(197, 155, 39, 0.4) 100%
  );
  z-index: 1;
}

.login-visual__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Logo — assets/image/login-logo.png */
.login-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 8px;
  flex: none;
  width: 216.39px;
  height: 88px;
}

.login-logo__img {
  display: block;
  width: 216.39px;
  height: 88px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: lighten;
}

/* Bottom copy block */
.login-visual__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 24px;
  width: 100%;
  max-width: 715px;
}

.login-badge {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 16px;
  gap: 8px;
  max-width: 100%;
  background: rgba(255, 253, 252, 0.1);
  border: 1px solid rgba(233, 217, 167, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
  flex: none;
}

.login-badge__icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--login-gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.login-badge__text {
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
}

.login-visual__text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 12px;
  width: 100%;
}

.login-visual__heading {
  margin: 0;
  width: 100%;
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 45px;
  color: #FFFFFF;
}

.login-visual__subheading {
  margin: 0;
  width: 100%;
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Right panel ≈ 645/1440 ---------- */
.login-form-panel {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 34px;
  flex: 645 1 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #F8F5EE;
  align-self: stretch;
}

.login-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  gap: 32px;
  isolation: isolate;
  position: relative;
  width: 100%;
  max-width: 494px;
  background: #FFFDFC;
  border: 1px solid #DED6C3;
  border-radius: 22px;
  box-shadow:
    0px 10px 15px -3px rgba(0, 0, 0, 0.1),
    0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.login-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.login-card__title {
  margin: 0;
  width: 100%;
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: #1F2A23;
}

.login-card__subtitle {
  margin: 0;
  width: 100%;
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6B6A63;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FDECEC;
  border: 1px solid #F5C2C2;
  color: #9B1C1C;
  font-family: var(--login-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.login-alert[hidden] {
  display: none !important;
}

.login-alert i {
  margin-top: 2px;
  flex: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
  position: relative;
  z-index: 2;
}

.login-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 0 0;
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}

.login-field:last-of-type {
  margin-bottom: 24px;
}

.login-label {
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #1F2A23;
  margin: 0;
}

.login-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  height: 46px;
  background: #F8F5EE;
  border: 1px solid #DED6C3;
  border-radius: 12px;
  position: relative;
}

.login-input__icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: #6B6A63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.login-input input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #1F2A23;
  height: 20px;
}

.login-input input::placeholder {
  color: #6B6A63;
}

.login-input:focus-within {
  border-color: #0B2E22;
  box-shadow: 0 0 0 3px rgba(11, 46, 34, 0.08);
}

.login-input__toggle {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6B6A63;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-input__toggle:hover,
.login-input__toggle:focus {
  color: #0B2E22;
  outline: none;
}

.login-submit {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  isolation: isolate;
  position: relative;
  width: 100%;
  min-height: 48px;
  height: 48px;
  background: #0B2E22;
  border: 0;
  border-radius: 12px;
  box-shadow:
    0px 4px 6px -1px rgba(0, 0, 0, 0.1),
    0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  font-family: var(--login-font);
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
  background: #08241a;
  color: #FFFFFF;
  outline: none;
}

.login-submit:disabled {
  opacity: 0.85;
  cursor: wait;
}

.login-submit .fa,
.login-submit .fas,
.login-submit .far {
  margin-right: 6px;
}

.login-btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 8px;
  vertical-align: -0.15em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-right-color: #ffffff;
  border-radius: 50%;
  animation: login-btn-spin 0.65s linear infinite;
}

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

.login-field .error,
.login-field label.error,
.login-form label.error {
  font-family: var(--login-font);
  font-size: 12px;
  font-weight: 400;
  color: #c0392b;
  margin-top: 4px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
  .login-visual__heading {
    font-size: 30px;
    line-height: 38px;
  }

  .login-card {
    max-width: 460px;
    padding: 36px;
  }

  .login-card__title {
    font-size: 26px;
    line-height: 32px;
  }
}

@media (max-width: 991.98px) {
  .login-container {
    flex-direction: column;
  }

  .login-visual {
    flex: none;
    width: 100%;
    min-height: 280px;
    height: 320px;
  }

  .login-visual__content {
    padding: 24px;
  }

  .login-visual__heading {
    font-size: 26px;
    line-height: 34px;
  }

  .login-visual__subheading {
    font-size: 14px;
    line-height: 22px;
  }

  .login-form-panel {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 24px 16px 40px;
  }

  .login-card {
    max-width: 494px;
    gap: 28px;
  }
}

@media (max-width: 575.98px) {
  .login-visual {
    height: 260px;
    min-height: 240px;
  }

  .login-logo {
    width: 160px;
    height: 65px;
  }

  .login-logo__img {
    width: 160px;
    height: 65px;
  }

  .login-badge {
    padding: 6px 12px;
  }

  .login-badge__text {
    font-size: 12px;
    line-height: 16px;
  }

  .login-visual__copy {
    gap: 16px;
  }

  .login-visual__heading {
    font-size: 22px;
    line-height: 28px;
  }

  .login-visual__subheading {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .login-form-panel {
    padding: 16px 12px 32px;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 18px;
    gap: 24px;
  }

  .login-card__title {
    font-size: 24px;
    line-height: 30px;
  }

  .login-field {
    margin-bottom: 14px;
  }

  .login-field:last-of-type {
    margin-bottom: 20px;
  }
}
