/* =========================================================
   Login Page
   File: css/login.css
   ========================================================= */

.login-page {
  background: #fffdf8;
}

/* =========================================================
   Hero / Main Login
   ========================================================= */

.login-hero-section {
  position: relative;
  overflow: hidden;
  background: #021d13;
  padding: 58px 0 64px;
}

.login-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(213, 173, 88, 0.16), transparent 320px),
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.30) 0%,
      rgba(2, 29, 19, 0.68) 45%,
      rgba(2, 29, 19, 0.92) 100%
    );
}

.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
  gap: 34px;
}

/* =========================================================
   Form Card
   ========================================================= */

.login-form-card {
  border: 1px solid rgba(213, 173, 88, 0.36);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  padding: 38px 34px;
  backdrop-filter: blur(12px);
}

.login-form-head {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9c762e;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

.login-label::before,
.login-label::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #d5ad58;
}

.login-form-head h1 {
  margin: 0 0 10px;
  color: #063522;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.45;
}

.login-form-head p {
  margin: 0;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.login-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #063522;
  font-size: 14px;
  font-weight: 900;
}

.input-wrap {
  position: relative;
  height: 54px;
  border: 1px solid #e0d5be;
  border-radius: 11px;
  background: #fffdf8;
  display: flex;
  align-items: center;
  transition: 0.22s ease;
}

.input-wrap:focus-within {
  border-color: #d5ad58;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(213, 173, 88, 0.12);
}

.input-wrap > i {
  width: 50px;
  color: #9c762e;
  font-size: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273027;
  font-size: 15px;
  padding: 0 0 0 12px;
}

.input-wrap input::placeholder {
  color: #a5a5a5;
}

.password-wrap input {
  padding-left: 46px;
}

.toggle-password {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7a7f78;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: 0.2s ease;
}

.toggle-password:hover {
  background: #fff7e4;
  color: #9c762e;
}

.form-error {
  display: none;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.7;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .input-wrap {
  border-color: #b3261e;
  background: #fff8f7;
}

/* =========================================================
   Options
   ========================================================= */

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.custom-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.custom-check input {
  display: none;
}

.custom-check span {
  width: 20px;
  height: 20px;
  border: 1px solid #d5ad58;
  border-radius: 6px;
  background: #ffffff;
  flex: 0 0 auto;
  position: relative;
}

.custom-check input:checked + span {
  background: #07452e;
  border-color: #07452e;
}

.custom-check input:checked + span::after {
  content: "\F633";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.custom-check em {
  color: #5c665f;
  font-size: 13px;
  line-height: 2;
  font-style: normal;
}

.forgot-link {
  color: #07452e;
  font-size: 13px;
  font-weight: 900;
  transition: 0.2s ease;
}

.forgot-link:hover {
  color: #9c762e;
}

.login-submit-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 11px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  transition: 0.25s ease;
}

.login-submit-btn:hover {
  background: #d5ad58;
  color: #021d13;
  transform: translateY(-2px);
}

.login-alert {
  display: none;
  border: 1px solid rgba(7, 69, 46, 0.18);
  border-radius: 11px;
  background: rgba(7, 69, 46, 0.07);
  color: #063522;
  padding: 14px;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

.login-alert.show {
  display: block;
}

.login-register-link {
  text-align: center;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.login-register-link a {
  color: #07452e;
  font-weight: 900;
}

/* =========================================================
   Side Card
   ========================================================= */

.login-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(213, 173, 88, 0.34);
  background:
    radial-gradient(circle at 22% 22%, rgba(213, 173, 88, 0.16), transparent 260px),
    linear-gradient(135deg, rgba(2, 29, 19, 0.94), rgba(7, 69, 46, 0.90));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.login-side-content {
  padding: 48px 46px 22px;
  color: #ffffff;
}

.login-side-content > span {
  color: #d5ad58;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  margin-bottom: 10px;
}

.login-side-content h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.55;
}

.login-side-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 2.1;
}

.login-benefits {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.login-benefits article {
  border: 1px solid rgba(213, 173, 88, 0.20);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.login-benefits i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(213, 173, 88, 0.12);
  color: #d5ad58;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.login-benefits h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.login-benefits p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.9;
}

.login-side-btn {
  margin-top: 26px;
  height: 48px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-weight: 900;
  transition: 0.25s ease;
}

.login-side-btn:hover {
  transform: translateY(-3px);
  color: #021d13;
}

.login-side-image {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 0;
}

.login-side-image img {
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   Info Section
   ========================================================= */

.login-info-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.08), transparent 430px),
    #fffdf8;
  padding: 46px 0 58px;
}

.login-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.login-info-grid article {
  min-height: 190px;
  border: 1px solid #e9dfc9;
  border-radius: 15px;
  background: #ffffff;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
  transition: 0.25s ease;
}

.login-info-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.13);
}

.login-info-grid i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.login-info-grid h2 {
  margin: 0 0 8px;
  color: #063522;
  font-size: 20px;
  font-weight: 900;
}

.login-info-grid p {
  margin: 0;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.login-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

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

@media (max-width: 1199px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-side-card {
    min-height: auto;
  }

  .login-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .login-hero-section {
    padding: 36px 0 44px;
  }

  .login-form-card {
    border-radius: 16px;
    padding: 28px 18px;
  }

  .login-form-head h1 {
    font-size: 28px;
  }

  .login-form-head p {
    font-size: 13px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-side-content {
    padding: 34px 20px 18px;
    text-align: center;
  }

  .login-side-content h2 {
    font-size: 27px;
  }

  .login-side-content p {
    font-size: 14px;
  }

  .login-benefits article {
    text-align: right;
  }

  .login-side-image {
    min-height: 180px;
  }

  .login-info-section {
    padding: 36px 0 44px;
  }

  .login-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}