:root {
  --page-bg: #eef4fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #17223a;
  --muted: #4f617b;
  --line: #d8e1f1;
  --field-bg: #f8fbff;
  --accent: #2563eb;
  --danger: #be123c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88, 144, 255, 0.18), transparent 22%),
    radial-gradient(circle at right center, rgba(161, 119, 255, 0.15), transparent 24%),
    linear-gradient(180deg, #eef4fb 0%, #f7f9fd 100%);
  color: var(--text);
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floaty 8s ease-in-out infinite;
}

.page-frame {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.page-frame::before,
.page-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-frame::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(127, 145, 201, 0.18), transparent 18%),
    radial-gradient(circle at 85% 70%, rgba(191, 176, 235, 0.22), transparent 22%);
  filter: blur(6px);
}

.page-frame::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(72, 87, 132, 0.12);
  opacity: 0.76;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  filter: saturate(0.9);
}

.visa-card {
  left: 12%;
  top: 18%;
  width: 215px;
  height: 110px;
  background: linear-gradient(135deg, #8f99cf, #c9d3ea);
  color: #ffffff;
  font-size: 3rem;
  transform: rotate(-8deg);
}

.amex-card {
  left: 10%;
  bottom: 22%;
  width: 210px;
  height: 115px;
  background: linear-gradient(135deg, #c4d2ef, #aabce8);
  font-size: 1.15rem;
  line-height: 1.1;
  transform: rotate(7deg);
}

.mastercard-card {
  right: 16%;
  top: 17%;
  width: 190px;
  height: 98px;
  background: linear-gradient(135deg, #d7d9e8, #c4cbe5);
  color: #4f5f86;
  font-size: 1.15rem;
  transform: rotate(4deg);
}

.discover-card {
  right: 13%;
  bottom: 16%;
  width: 185px;
  height: 100px;
  background: linear-gradient(135deg, #d5d5e6, #cdccea);
  color: #6a74b0;
  font-size: 1.25rem;
  transform: rotate(-6deg);
}

.paypal-card {
  left: 42%;
  bottom: 14%;
  width: 170px;
  height: 84px;
  background: linear-gradient(135deg, #bed0f2, #a8b8df);
  color: #5c6695;
  font-size: 1rem;
  transform: rotate(-2deg);
}

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

.app-shell {
  width: min(100%, 1320px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(17, 29, 72, 0.1);
  overflow: hidden;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  padding: 34px 44px 36px;
  box-shadow: 0 28px 100px rgba(15, 30, 78, 0.08);
  backdrop-filter: blur(10px);
  background-clip: padding-box;
}

.brand-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.brand-logo {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(19, 27, 55, 0.15));
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #17223a;
}

.subtitle {
  margin: 14px 0 34px;
  text-align: center;
  font-size: 1.6rem;
  color: #475569;
}

.login-form {
  max-width: 560px;
  margin: 0 auto;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 16px;
  margin-bottom: 24px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 64px;
}

.input-shell:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.input-shell.has-error {
  border-color: #d73939;
  box-shadow: 0 0 0 3px rgba(215, 57, 57, 0.18);
}

.input-icon {
  color: #475569;
  width: 20px;
  height: 20px;
  flex: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #1e293b;
  font-size: 1.02rem;
  font-family: inherit;
}

input::placeholder {
  color: #94a3b8;
}

.form-message {
  min-height: 20px;
  margin: 4px 0 14px;
  font-size: 0.95rem;
  color: #cd4f4f;
}

.form-message.success {
  color: #236f41;
}

.login-button {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.register-copy {
  margin: 26px 0 0;
  text-align: center;
  color: #64718c;
  font-size: 1rem;
}

.register-copy a {
  color: #31508f;
  text-decoration: none;
  font-weight: 700;
}

.login-copy {
  margin: 26px 0 0;
  text-align: center;
  color: #64718c;
  font-size: 1rem;
}

.login-copy a {
  color: #31508f;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 760px) {
  .visa-card,
  .amex-card,
  .mastercard-card,
  .discover-card,
  .paypal-card {
    opacity: 0.5;
  }

  .visa-card {
    left: 6%;
    top: 16%;
  }

  .amex-card {
    left: 4%;
    bottom: 16%;
  }

  .mastercard-card {
    right: 6%;
    top: 18%;
  }

  .discover-card {
    right: 4%;
    bottom: 12%;
  }

  .paypal-card {
    display: none;
  }

  .auth-card {
    padding: 30px 22px 26px;
  }

  .brand-logo {
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }
}
