/* ===== BASE ===== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fdf5d2;
  text-align: center;
  overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 18px;
}

.welcome-header {
  color: #f86443;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-text {
  max-width: 520px;
  font-size: 16px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 18px;
  transition: 0.3s ease;
}

/* ===== AUTH BOX ===== */
.auth-box {
  width: 420px;
  max-width: 100%;
  padding: 18px 22px;
  background: #fff9e1;
  border-radius: 16px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.auth-box h2 {
  color: #FA5D3A;
  margin-bottom: 8px;
}

/* Description inside box */
.signup-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
  line-height: 2;
}

/* ===== INPUTS ===== */
.auth-box input,
.auth-box select {
  width: 100%;
  padding: 9px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Mobile row */
.row {
  display: flex;
  gap: 10px;
}

.row select {
  width: 40%;
}

.row input {
  width: 60%;
}

/* ===== PASSWORD FIELD ===== */
.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

/* Strength text */
.strength-text {
  text-align: left;
  font-size: 12px;
  margin: -5px 0 10px;
}

/* ===== BUTTONS ===== */
.auth-box button {
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: #FA5D3A;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 6px;
}

.auth-box button:hover {
  background: #e44c2a;
}

/* Google Button */
.google-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
}

.google-btn img {
  width: 20px;
}

/* ===== LINKS ===== */
.toggle-link {
  margin-top: 12px;
  display: block;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.toggle-link:hover {
  color: #FA5D3A;
}

.back-home {
  display: block;
  margin-top: 10px;
  color: #FA5D3A;
  font-weight: bold;
  text-decoration: none;
}

.back-home:hover {
  text-decoration: underline;
}

/* ===== PROFILE ICON ===== */
.profile-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  display: none;
  cursor: pointer;
}

.profile-icon img {
  width: 40px;
  border-radius: 50%;
  border: 2px solid #FA5D3A;
}

/* ===== PROFILE POPUP ===== */
#profilePopup.profile-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 650px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  display: none !important;
  z-index: 10000;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

#profilePopup.profile-popup.active {
  display: block !important;
}

/* Profile Layout */
.profile-details-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.owner-details,
.pet-details {
  flex: 1;
}

.section-title {
  color: #FA5D3A;
  font-size: 15px;
  border-bottom: 2px solid #ffcc70;
  margin: 10px 0 12px;
  padding-bottom: 5px;
  text-align: left;
}

.profile-details-grid input,
.profile-details-grid select {
  width: 100%;
  margin: 5px 0;
  padding: 7px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
}

/* Progress */
.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 10px;
  margin-bottom: 10px;
}

#progressFill {
  height: 8px;
  width: 60%;
  background: #ff6442;
  border-radius: 10px;
}

/* Profile Button */
.profile-popup button {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #FA5D3A;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .profile-details-grid {
    flex-direction: column;
  }

  .profile-popup {
    top: 20px;
    transform: translateX(-50%);
  }
}

@media (max-width: 420px) {
  .auth-box {
    width: 95%;
    padding: 16px;
  }

  .row {
    flex-direction: column;
  }
}
.toggle-eye img {
  width: 18px;
  opacity: 0.7;
}

.toggle-eye:hover img {
  opacity: 1;
}