.auth-page{
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url("Images/model3.jpg") center/cover no-repeat;
  overflow: hidden;
}

.auth-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.08), transparent 25%);
  pointer-events: none;
}

.auth-wrapper{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.auth-left{
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tag{
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 999px;
  color: #f3d676;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
}

.auth-left h1{
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 560px;
}

.auth-intro{
  max-width: 520px;
  color: #e8e8e8;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.auth-features{
  display: grid;
  gap: 14px;
  max-width: 430px;
}

.auth-feature{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.auth-feature span{
  color: #d4af37;
  font-size: 19px;
}

.auth-feature p{
  color: #f1f1f1;
  font-size: 15px;
}

.auth-card{
  width: 90%;
  background: rgba(17,17,17,0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  color: white;
}

.auth-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-tab{
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: white;
  padding: 13px;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.auth-tab.active{
  background: #d4af37;
  color: #111;
  border-color: #d4af37;
  font-weight: 700;
}

.form-badge{
  color: #d4af37;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.auth-card h2{
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-subtitle{
  color: #d9d9d9;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.6;
}

#authForm{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label{
  font-size: 14px;
  color: #f1f1f1;
}

#authForm input{
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
  font-size: 15px;
  transition: 0.3s ease;
}

#authForm input::placeholder{
  color: #bdbdbd;
}

#authForm input:focus{
  border-color: rgba(212,175,55,0.55);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.08);
}

.password-field{
  position: relative;
  width: 100%;
}

.password-field input{
  width: 100%;
  padding-right: 50px !important;
}

.toggle-password{
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #d4af37;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

.toggle-password:hover{
  opacity: 0.85;
}

.auth-btn{
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4af37, #f3d676);
  color: #111;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.auth-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212,175,55,0.2);
}

.auth-switch-text{
  margin-top: 18px;
  text-align: center;
  color: #ddd;
  font-size: 15px;
  line-height: 1.5;
}

.auth-switch-text button{
  background: none;
  border: none;
  color: #d4af37;
  font-weight: 700;
  cursor: pointer;
}

.auth-message{
  margin-top: 16px;
  text-align: center;
  min-height: 20px;
  font-size: 15px;
}

.auth-message.success{
  color: #8ff0a4;
}

.auth-message.error{
  color: #ffb4b4;
}

#confirmGroup{
  display: none;
}

/* TABLET */
@media (max-width: 960px){
  .auth-wrapper{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .auth-left{
    display: none;
  }

  .auth-page{
    padding: 32px 16px;
  }

  .auth-card{
    width: 100%;
  }
}

/* MOBILE */
@media (max-width: 600px){
  .auth-page{
    padding: 24px 12px;
    min-height: calc(100vh - 80px);
  }

  .auth-wrapper{
    max-width: 100%;
    gap: 0;
  }

  .auth-card{
    width: 100%;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .auth-tabs{
    gap: 8px;
    margin-bottom: 18px;
  }

  .auth-tab{
    padding: 12px 10px;
    font-size: 14px;
    border-radius: 12px;
  }

  .form-badge{
    font-size: 12px;
    margin-bottom: 8px;
  }

  .auth-card h2{
    font-size: 26px;
    line-height: 1.2;
  }

  .auth-subtitle{
    font-size: 14px;
    margin-bottom: 18px;
  }

  #authForm{
    gap: 14px;
  }

  .input-group{
    gap: 6px;
  }

  .input-group label{
    font-size: 13px;
  }

  #authForm input{
    padding: 13px 12px;
    font-size: 15px;
    border-radius: 12px;
  }

  .auth-btn{
    padding: 13px;
    font-size: 15px;
    border-radius: 12px;
  }

  .toggle-password{
    right: 10px;
    font-size: 16px;
  }

  .password-field input{
    padding-right: 44px !important;
  }

  .auth-switch-text{
    font-size: 14px;
    margin-top: 16px;
  }

  .auth-message{
    font-size: 14px;
    margin-top: 14px;
  }
}

/* SMALL MOBILE */
@media (max-width: 400px){
  .auth-page{
    padding: 18px 10px;
  }

  .auth-card{
    padding: 18px 14px;
    border-radius: 16px;
  }

  .auth-card h2{
    font-size: 24px;
  }

  .auth-subtitle{
    font-size: 15px;
  }

  .auth-tab{
    font-size: 15px;
    padding: 11px 8px;
  }

  #authForm input{
    padding: 12px 11px;
    font-size: 16px;
  }

  .auth-btn{
    font-size: 20px;
    padding: 12px;
  }

  .auth-switch-text,
  .auth-message{
    font-size: 13px;
  }
}