.genie-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 25px 20px;
  box-sizing: border-box;
  background: transparent;
  color: #111827;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.genie-auth-page * {
  box-sizing: border-box;
}

.genie-auth-card {
  width: min(100%, 460px);
  padding: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.genie-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.genie-auth-brand img {
  display: block;
  width: 168px;
  max-width: 70%;
  height: auto;
}

.genie-auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.genie-auth-header h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
}

.genie-auth-header p {
  max-width: 38ch;
  margin: 0 auto;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.genie-auth-message,
.genie-auth-error,
.genie-auth-success {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.genie-auth-message--error,
.genie-auth-message.is-error,
.genie-auth-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.genie-auth-message--success,
.genie-auth-message.is-success,
.genie-auth-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.genie-auth-form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.genie-auth-field {
  display: grid;
  gap: 8px;
}

.genie-auth-field label,
.genie-auth-remember {
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.genie-auth-field input[type="text"],
.genie-auth-field input[type="email"],
.genie-auth-field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.genie-auth-field input::placeholder {
  font-weight: 400;
}

.genie-auth-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.genie-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
}

.genie-auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
}

.genie-auth-forgot {
  justify-self: end;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.genie-auth-forgot:hover,
.genie-auth-forgot:focus {
  color: #1d4ed8;
  text-decoration: underline;
}

.genie-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.genie-auth-submit:hover,
.genie-auth-submit:focus {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.genie-auth-submit:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.genie-auth-footer {
  margin: 24px 0 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.genie-auth-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.genie-auth-footer a:hover,
.genie-auth-footer a:focus {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .genie-auth-page {
    min-height: 100svh;
    padding: 28px 14px;
  }

  .genie-auth-card {
    padding: 28px 18px;
  }

  .genie-auth-brand {
    margin-bottom: 22px;
  }

  .genie-auth-brand img {
    width: 142px;
  }

  .genie-auth-header {
    margin-bottom: 24px;
  }

  .genie-auth-header h1 {
    font-size: 28px;
  }

  .genie-auth-header p {
    font-size: 15px;
  }

  .genie-auth-field input[type="text"],
  .genie-auth-field input[type="email"],
  .genie-auth-field input[type="password"],
  .genie-auth-submit {
    min-height: 50px;
  }
}
