:root {
  --brand: #8a80b1;
  --brand-strong: #796ea7;
  --brand-soft: #f0ebff;
  --accent: #d3af61;
  --text: #221c33;
  --muted: #645d80;
  --line: #ddd5ef;
  --error: #bb2124;
  --success-bg: #e8f7ee;
  --success-text: #1e7f43;
  --success-border: #b7e4c7;
  --error-bg: #fdecea;
  --error-text: #b02a37;
  --error-border: #f5c2c7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;

}

input,
button,
textarea,
select {
  font: inherit;
}

body.auth-page {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(160deg, #f5f1ff 0%, #faf8ff 48%, #f1ebff 100%);
}

.auth-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 22px 16px 34px;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.brand img {
  display: block;
}

.auth-link {
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.auth-grid--single {
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-side {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #30274b 0%, #4d3f74 100%);
  color: #f8f6ff;
  padding: 30px 24px;
  box-shadow: 0 24px 48px rgba(48, 39, 75, 0.3);
}

.auth-side::before,
.auth-side::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.auth-side::before {
  width: 230px;
  height: 230px;
  top: -92px;
  right: -64px;
}

.auth-side::after {
  width: 180px;
  height: 180px;
  bottom: -84px;
  left: -56px;
}

.eyebrow {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #dacff8;
  font-weight: 600;
}

.auth-side h1 {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.24;
}

.auth-side p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #e6ddfa;
  line-height: 1.72;
  font-size: 0.93rem;
}

.auth-card {
  background: #ffffff;
  border: 1px solid rgba(221, 213, 239, 0.95);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 18px 42px rgba(79, 64, 121, 0.14);
}

.auth-form {
  width: 100%;
}

.auth-form-head h2 {
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #2f2750;
}

.auth-form-head p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-redirect-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(138, 128, 177, 0.22);
  border-radius: 14px;
  color: #3c3458;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 255, 0.98)),
    #ffffff;
}

.auth-redirect-note[hidden] {
  display: none;
}

.auth-redirect-note span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-redirect-note p {
  margin: 0;
  color: #5f5777;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.input-box {
  margin-top: 14px;
}

.field {
  margin-top: 12px;
}
 
.label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3b3355;
}
.password-wrapper {
  position: relative;

}
.password-wrapper i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #8e85ae;
}
.input-box input {
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  width: 100%;
  padding: 12px 12px;
  font-size: 0.93rem;
  color: #2f2750;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(138, 128, 177, 0.18);
}

.username {
  text-transform: capitalize;
}

.password-wrap {
  position: relative;
}

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

.toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.toggle::after {
  font-family: "Font Awesome 6 Free";
  content: "\f070";
  font-weight: 900;
  user-select: none;
  font-size: 14px;
  color: #8e85ae;
}

.toggle.slash::after {
  content: "\f06e";
}

#message {
  margin-top: 12px;
  max-height: max-content;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
  text-align: start;
  display: none;
  transition: all 0.3s ease;
}

#message.success {
  display: block;
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

#message.error {
  display: block;
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.error-email,
.error-name,
.error-password {
  font-size: 0.76rem;
  margin-top: 5px;
  color: var(--error);
}

.submit {
  width: 100%;
  padding: 18px 0 8px;
}

.submit button {
  position: relative;
  width: 100%;
  padding: 13px 10px;
  border: none;
  outline: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(121, 110, 167, 0.32);
  transition: transform 0.2s ease;
  /* color: #30274B; */
}

.submit button.auth-click {
  background: rgba(121, 110, 167, 0.65);
  animation: clickEffect 0.28s ease;
  -webkit-animation: clickEffect 0.28s ease;
}
@keyframes clickEffect {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}


.submit button:hover {
  transform: translateY(-1px);
}

.forget-pswd {
  font-size: 0.78rem;
  font-weight: 600;
  padding-top: 7px;
}

.no-account {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 8px;
  color: var(--muted);
}

.no-account a,
.forget-pswd a {
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 700;
}

@media (max-width: 960px) {
  .auth-grid,
  .auth-grid--single {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 24px 18px;
  }

  .auth-side h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 14px 12px 24px;
  }

  .auth-header {
    margin-bottom: 12px;
  }

  .auth-link {
    font-size: 0.82rem;
  }

  .auth-card {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .auth-form-head h2 {
    font-size: 1.2rem;
  }

  .input-box input {
    padding: 11px 10px;
  }

  .label {
    font-size: 0.82rem;
  }

  .submit button {
    padding: 12px 10px;
    font-size: 0.92rem;
  }

  .no-account,
  .forget-pswd {
    font-size: 0.76rem;
  }

  #message {
    font-size: 0.79rem;
  }
}
