.auth-page {
  min-height: calc(100dvh - 80px);
  padding: 110px 20px 50px;
  background:
    radial-gradient(circle at top left, rgba(220, 215, 201, 0.45), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f5f1 100%);
}

.auth-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}

.auth-copy,
.auth-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.auth-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.auth-copy::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  background: #DCD7C9;
  opacity: 0.55;
}

.auth-badge {
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f3eee4;
  color: #A27B5C;
  font-size: 13px;
  font-weight: 700;
}

.auth-copy h1 {
  max-width: 540px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.95;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.auth-copy p {
  max-width: 520px;
  color: #555;
  font-size: 17px;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 46px;
  position: relative;
  z-index: 1;
}

.auth-points div {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.auth-points span {
  display: block;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.auth-card {
  padding: 38px;
}

.auth-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  font-size: 14px;
}

.auth-card-header span {
  font-weight: 700;
}

.auth-card-header a,
.auth-bottom-text a {
  color: #A27B5C;
  font-weight: 700;
}

.auth-card h2 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.auth-subtitle {
  color: #666;
  margin-bottom: 28px;
}

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

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

.auth-form label span {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.auth-form input {
  width: 100%;
  height: 54px;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  background: #fff;
  padding: 0 15px;
  font: inherit;
  font-size: 15px;
  color: #111;
  outline: none;
}

.auth-form input:focus {
  border-color: #A27B5C;
  box-shadow: 0 0 0 4px rgba(162, 123, 92, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f5f5f7;
  color: #111;
  font-size: 13px;
}

.password-toggle:hover {
  background: #111;
  color: #fff;
}

.auth-submit {
  width: 100%;
  height: 56px;
  margin-top: 6px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: relative;
}

.auth-submit:hover {
  background: #333;
  color: #fff;
}

.auth-submit.loading {
  pointer-events: none;
  opacity: 0.85;
}

.auth-submit.loading .btn-text {
  opacity: 0;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  position: absolute;
}

.auth-submit.loading .btn-loader {
  display: block;
}

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

.auth-message {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.auth-message.success {
  color: #4f7d4f;
}

.auth-message.error {
  color: #b3261e;
}

.auth-bottom-text {
  margin: 24px 0 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

@media (max-width: 820px) {
  .auth-page {
    padding: 96px 16px 32px;
  }

  .auth-shell {
    display: block;
    max-width: 460px;
  }

  .auth-copy {
    display: none;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .auth-card-header {
    margin-bottom: 26px;
  }

  .auth-card h2 {
    font-size: 30px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .auth-form input,
  .auth-submit {
    height: 54px;
  }
}

@media (max-width: 380px) {
  .auth-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .auth-card h2 {
    font-size: 28px;
  }
}

/* ================= LOGIN POPUP ================= */

.login-popup{

  display:none;

  position:fixed;

  inset:0;

  width:100%;
  height:100%;

  z-index:999999;

  align-items:center;

  justify-content:center;

}


.login-popup.active{

  display:flex;

}



.login-popup-bg{

  position:absolute;

  inset:0;

  background:rgba(0,0,0,0.45);

  backdrop-filter:blur(8px);

}



/* .login-popup-box{

  position:relative;

  z-index:2;

  width:420px;

  max-width:calc(100% - 32px);

  background:#ffffff;

  border-radius:28px;

  padding:35px;

  box-sizing:border-box;

  box-shadow:0 25px 80px rgba(0,0,0,.25);

} */

.login-popup-box {
  position: relative;
  z-index: 2;
  width: 420px;
  max-width: calc(100% - 32px);

  background: rgba(247, 252, 255, 0.384);
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;

  padding: 35px;
  box-sizing: border-box;

  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
}



.popup-close{
  position:absolute;
  right:18px;
  top:12px;
  border:none;
  color: rgba(245, 245, 245, 0.5);
  background:none;
  font-size:32px;
  cursor:pointer;
}



.login-popup-box h2{
  margin:0 0 8px;
  font-size:28px;
  color: white;

}
.login-popup-box p{
  margin-bottom:20px;
  color:#777;

}



.login-popup-box input{
  background-color: rgba(255, 255, 255, 0.657);
  color: #4f7d4f;
  width:100%;
  height:52px;
  box-sizing:border-box;
  padding:0 18px;
  margin-bottom:12px;
  border-radius:14px;
  border: none;
  font-size:16px;

}



.popup-login-btn,
.popup-register-btn{

  width:100%;
  height:52px;
  border-radius:14px;
  border:none;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
}



.popup-login-btn{
  background:#214c43;
  color:white;
}



.popup-register-btn{
  margin-top:15px;
  background:white;
  color:#214c43;
}



.popup-divider{

  text-align:center;

  margin:18px 0;

  color:#999;

}



@media(max-width:600px){


.login-popup-box{

  width:calc(100% - 30px);

  padding:28px 20px;

  border-radius:22px;

}


.login-popup-box h2{
  font-size:29px;
  margin-bottom: 0px;
  margin-top: 14px;
}

.popup-close{
  position:absolute;
  left: 280px;
  top:0px;
  font-size:38px;
}

.login-popup-box{
  font-size:34px;
  padding: 7px 20px;
}


.popup-divider{

  text-align:center;

  margin:px 0;

  color:#999;

}

.popup-register-btn{
  margin-top: 0px !important; 
  padding: 0px !important; 
  margin-bottom: 20px !important;
}

}

