:root {
  color-scheme: light;
  --ink: #24312f;
  --muted: #6f7f78;
  --paper: #fffaf4;
  --line: rgba(72, 55, 43, 0.14);
  --green: #0f766e;
  --rose: #c05a7a;
  --gold: #d29b38;
  font-family: "Tajawal", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(210, 155, 56, 0.22), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(192, 90, 122, 0.18), transparent 22rem),
    linear-gradient(145deg, #f7efe6 0%, #eef8f4 56%, #fffaf5 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-hero {
  width: min(100%, 460px);
  position: relative;
}

.auth-art {
  height: 138px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(31, 89, 82, 0.88)),
    url("dashboard-organizer.svg");
  background-size: cover;
  box-shadow: 0 24px 60px rgba(45, 65, 59, 0.22);
}

.auth-art::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
}

.auth-art span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  backdrop-filter: blur(10px);
}

.auth-art .sun { right: 26px; top: 24px; }
.auth-art .note { left: 32px; top: 22px; }
.auth-art .heart { left: 92px; bottom: 20px; }

.eyebrow {
  margin: 22px 0 8px;
  color: var(--green);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

#appLead {
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 20px;
}

.auth-card {
  background: rgba(255, 250, 244, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 46px rgba(77, 68, 54, 0.14);
  backdrop-filter: blur(16px);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: rgba(15, 118, 110, 0.65);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #1f8f73);
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
}

.primary-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--rose);
  font-weight: 800;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.auth-switch a,
.home-link {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  font-weight: 800;
}

.auth-switch a.is-active {
  color: #fff;
  background: var(--rose);
  border-color: transparent;
}

.home-link {
  display: block;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .auth-shell {
    align-items: start;
    padding: 18px;
  }

  .auth-switch {
    grid-template-columns: 1fr;
  }
}
