* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #6a1b9a, #8e24aa, #26a69a);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrapper {
  width: 100%;
  max-width: 380px;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  text-align: center;
}

.logo {
  width: 160px;
  margin-bottom: 10px;
}

h2 {
  margin: 8px 0;
  color: #4a148c;
}

.subtext {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  outline: none;
}

input:focus {
  border-color: #8e24aa;
}

.row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 16px;
}

.row a {
  color: #8e24aa;
  text-decoration: none;
}

.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #ab47bc, #7e57c2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.divider {
  margin: 18px 0;
  font-size: 12px;
  color: #aaa;
}

.whatsapp-btn {
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, #1ebea5, #00c853);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social img {
  width: 42px;
  margin-top: 14px;
}

.signup {
  font-size: 13px;
  margin-top: 16px;
}

.signup a {
  color: #8e24aa;
  font-weight: 500;
}
.terms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 10px 0 18px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox input {
  accent-color: #8e24aa;
}

.forgot {
  color: #8e24aa;
  text-decoration: none;
  font-weight: 500;
}

.divider {
  margin: 22px 0;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.divider::before,
.divider::after {
  content: "";
  display: inline-block;
  width: 30%;
  height: 1px;
  background: #ddd;
  vertical-align: middle;
  margin: 0 8px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.social-btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.social-btn img {
  width: 22px;
}
.terms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 20px;
  font-size: 13px;
}

.terms-left {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  max-width: 75%;
}

.terms-left input {
  accent-color: #8e24aa;
  margin-top: 2px;
}

.terms-left span {
  color: #444;
}

.terms-left a {
  color: #7e57c2;
  text-decoration: none;
  font-weight: 500;
}

/* Password field */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding: 14px 42px 14px 14px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #888;
}

/* Remember row */
.remember-row {
  display: flex;
  align-items: center;              /* 🔑 vertical center */
  justify-content: space-between;
  margin: 16px 0 22px;
  font-size: 14px;
}

.remember-left {
  display: flex;
  align-items: center;              /* 🔑 checkbox + text aligned */
  gap: 10px;
}

.remember-left input {
  width: 18px;
  height: 18px;
  accent-color: #8e24aa;
  margin: 0;                        /* 🔑 remove default offset */
}

.remember-left span {
  line-height: 1;                   /* 🔑 prevents vertical drift */
}

.forgot-link {
  white-space: nowrap;
  color: #7e57c2;
  font-weight: 500;
  text-decoration: none;
}


/* Login button states */
.login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #ab47bc, #7e57c2);
  cursor: not-allowed;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.login-btn.enabled {
  opacity: 1;
  cursor: pointer;
}

.login-btn.enabled:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(126,87,194,0.4);
}

.input-wrapper {
  position: relative;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 46px 14px 14px;
}

.eye-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.eye-toggle:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.eye-toggle.active {
  color: #7e57c2;
  opacity: 1;
}

/* Social buttons */
.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Disabled register button */
.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
