* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 24px;
  display: grid;
  place-items: center;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 52%, #42a5f5 100%);
  color: #18324b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  width: 390px;
  height: 390px;
  top: -190px;
  right: -100px;
}

body::after {
  width: 280px;
  height: 280px;
  bottom: -150px;
  left: -90px;
}

.developer-bypass {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 190px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 16px rgba(30, 76, 122, 0.12);
}

.developer-bypass label {
  display: block;
  margin-bottom: 6px;
  color: #52647a;
  font-size: 10px;
  font-weight: 700;
}

.bypass-controls {
  display: flex;
  gap: 5px;
}

.bypass-controls input {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d9e2eb;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

.bypass-controls button {
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: #586bc7;
  color: white;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

#bypass-error {
  display: block;
  min-height: 12px;
  margin-top: 4px;
  color: #b42318;
  font-size: 10px;
}

.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #244b72;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-2px);
}

.login-card {
  width: min(100%, 440px);
  margin: 36px 0;
  padding: 42px 44px 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(30, 76, 122, 0.2);
  backdrop-filter: blur(12px);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #6174d8, #4054b6);
  box-shadow: 0 8px 18px rgba(75, 93, 190, 0.25);
  color: white;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6174c8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  color: #172f49;
  font-size: clamp(30px, 7vw, 36px);
  letter-spacing: -0.045em;
}

.subtitle {
  margin: 10px 0 30px;
  color: #6b7d90;
  font-size: 15px;
  line-height: 1.55;
}

form {
  margin: 0;
}

.form-fields label {
  display: block;
  margin: 0 0 8px;
  color: #30475e;
  font-size: 13px;
  font-weight: 650;
}

.form-fields input {
  width: 100%;
  height: 48px;
  margin: 0 0 20px;
  padding: 0 14px;
  border: 1px solid #d9e2eb;
  border-radius: 10px;
  outline: none;
  background: #f9fbfd;
  color: #18324b;
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-fields input::placeholder {
  color: #9aa9b8;
}

.form-fields input:focus {
  border-color: #6174d8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(97, 116, 216, 0.13);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
  color: #687b8e;
  font-size: 12px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.remember-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #586bc7;
}

.form-options a {
  color: #5266bf;
  font-weight: 650;
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

.login-button {
  display: block;
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6578d8, #4b5fbd);
  box-shadow: 0 8px 18px rgba(75, 95, 189, 0.23);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 49px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.login-button:hover {
  box-shadow: 0 11px 22px rgba(75, 95, 189, 0.3);
  transform: translateY(-1px);
}

.signup-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #edf1f5;
}

.signup-section h2 {
  margin: 0;
  color: #172f49;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.signup-help {
  margin: 7px 0 18px;
  color: #6b7d90;
  font-size: 13px;
  line-height: 1.5;
}

.signup-button {
  margin-top: 2px;
}

.signup-status {
  margin: 12px 0 0;
  color: #52647a;
  font-size: 12px;
  line-height: 1.5;
}

.card-footer {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
  color: #8a99a8;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 72px 16px 24px;
  }

  .back-button {
    top: 16px;
    left: 16px;
  }

  .developer-bypass {
    top: 16px;
    right: 16px;
    width: 155px;
  }

  .login-card {
    padding: 32px 24px 24px;
  }
}
