@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --tp-navy: #0b1f2a;
  --tp-navy-soft: #13394d;
  --tp-card: #ffffff;
  --tp-line: #d7cdc4;
  --tp-text: #1a1a1a;
  --tp-muted: #5f6b73;
  --tp-input: #f8fafc;
  --tp-teal: #1fa3a6;
  --tp-burnt: #d4702a;
}

body[data-page="login"] {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(31, 163, 166, 0.1), transparent 40%),
    radial-gradient(circle at 84% 80%, rgba(212, 112, 42, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(255, 220, 200, 0.32) 0%, rgba(200, 230, 250, 0.22) 40%, rgba(240, 230, 255, 0.3) 100%),
    rgb(247, 244, 240);
  color: var(--tp-text);
}

.tp-auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}

.tp-auth-shell {
  width: min(100%, 500px);
  display: grid;
  gap: 0.9rem;
}

.tp-auth-brand {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.tp-auth-logo-container {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(11, 31, 42, 0.18);
  overflow: hidden;
  border: 3px solid var(--tp-teal);
}

.tp-auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-auth-tagline {
  margin: 0;
  color: #33444f;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  text-align: center;
}

.tp-auth-tagline span {
  color: var(--tp-teal);
  font-weight: 700;
}

.tp-auth-card {
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(11, 31, 42, 0.1);
}

.tp-auth-login-pill {
  text-align: center;
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  color: #ffffff;
  background: var(--tp-navy);
  font: 700 0.9rem/1 "Manrope", sans-serif;
}

.tp-auth-intro {
  margin: 1rem 0 0.8rem;
  text-align: center;
  color: var(--tp-muted);
  font-size: 0.92rem;
}

.tp-auth-form {
  display: grid;
  gap: 1rem;
}

.tp-auth-form .field {
  display: grid;
  gap: 0.45rem;
}

.tp-auth-form label {
  color: var(--tp-navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.tp-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tp-auth-label-row a {
  color: #6f7d86;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.tp-auth-label-row a:hover {
  color: var(--tp-teal);
}

.tp-auth-form input {
  width: 100%;
  border: 1px solid #d6e1e9;
  border-radius: 11px;
  background: var(--tp-input);
  color: var(--tp-navy);
  padding: 0.72rem 0.82rem;
  font: 600 0.92rem/1.2 "Manrope", sans-serif;
}

.tp-auth-form input::placeholder {
  color: #8b97a3;
}

.tp-auth-form input:focus-visible {
  outline: none;
  border-color: rgba(31, 163, 166, 0.85);
  box-shadow: 0 0 0 3px rgba(31, 163, 166, 0.2);
}

.tp-auth-form .field-row {
  display: grid;
  gap: 1rem;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 40px !important;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: var(--tp-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.toggle-password:hover {
  color: var(--tp-teal);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

.tp-auth-submit {
  margin-top: 0.5rem;
  border: 0;
  border-radius: 11px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tp-teal) 0%, #178a8d 100%);
  color: #ffffff;
  font: 700 0.95rem/1 "Manrope", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(31, 163, 166, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tp-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(31, 163, 166, 0.35);
}

#login-feedback {
  margin-top: 0.8rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.tp-auth-card-foot {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6f7d86;
}

.tp-auth-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .tp-auth-form .field-row {
    grid-template-columns: 1fr;
  }
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 40px !important;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: var(--tp-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.toggle-password:hover {
  color: var(--tp-teal);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  .tp-auth-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .tp-auth-intro {
    margin: 0.9rem 0 0.7rem;
    font-size: 0.88rem;
  }

  .tp-auth-form label {
    font-size: 0.88rem;
  }

  .tp-auth-form input,
  .tp-auth-submit,
  .tp-auth-login-pill {
    font-size: 0.9rem;
  }
}
