:root {
  --login-blue: #1e6de8;
  --login-blue-deep: #0b56c9;
  --login-blue-dark: #0042a9;
  --login-ink: #30364d;
  --login-muted: #55617b;
  --login-line: #bfcae4;
  --login-soft: #eef5ff;
  --login-panel: #ffffff;
  --login-info: #dbe9ff;
  --login-focus: #1e6de8;
  --login-yellow: #ffc94a;
  font-family: "Open Sans", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef7ff;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72), transparent 26rem),
    linear-gradient(180deg, #eef7ff 0%, #e7f2fb 100%);
  color: var(--login-ink);
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
}

.login-shell {
  width: min(928px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.login-card {
  display: grid;
  grid-template-columns: 370px 1fr;
  min-height: 722px;
  overflow: hidden;
  border: 1px solid #c9d5e8;
  border-radius: 14px;
  background: var(--login-panel);
  box-shadow: 0 2px 7px rgba(31, 48, 82, 0.18);
}

.login-brand-panel {
  position: relative;
  min-height: 720px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 24%, rgba(70, 168, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 78% 50%, rgba(0, 61, 168, 0.22), transparent 18rem),
    linear-gradient(160deg, #1b63c5 0%, #2876ea 100%);
}

.login-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.login-logo {
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
}

.login-logo-white,
.login-logo-white {
  filter: brightness(0) invert(1);
}

.login-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  margin: 0 0 22px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.login-welcome-pill span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #54d98b;
  box-shadow: 0 0 0 3px rgba(84, 217, 139, 0.18);
}

.login-brand-panel h1 {
  margin: 0;
  max-width: none;
  color: #ffffff;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-brand-panel h1 span {
  color: var(--login-yellow);
}

.login-brand-panel p {
  max-width: 320px;
  margin: 26px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.72;
  text-align: center;
}

.login-photo-cloud {
  position: relative;
  width: 332px;
  height: 326px;
  margin: 25px auto 18px;
}

.login-photo-tile {
  position: absolute;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 18px;
  transform: rotate(45deg);
  box-shadow: 0 10px 22px rgba(0, 38, 121, 0.16);
}

.login-photo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  z-index: 1;
}

.login-photo-tile img {
  width: 154%;
  height: 154%;
  object-fit: cover;
  transform: translate(-17%, -17%) rotate(-45deg);
}

.tile-yellow {
  left: 76px;
  top: 8px;
  background: #ffc04e;
}

.tile-yellow img {
  width: 190%;
  height: 190%;
  transform: translate(-22%, -21%) rotate(-45deg);
}

.tile-green {
  left: 38px;
  top: 122px;
  background: #01a66f;
}

.tile-purple {
  left: 158px;
  top: 86px;
  background: #8f36d1;
}

.tile-blue {
  left: 115px;
  top: 200px;
  background: #e8f1ff;
}

.tile-blue img {
  width: 190%;
  height: 190%;
  transform: translate(-25%, -23%) rotate(-45deg);
}

.tile-pink {
  left: 238px;
  top: 160px;
  background: #fb4b7c;
}

.login-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: auto 0 0;
  padding: 0;
}

.login-stats div {
  min-height: 65px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.login-stats dt {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.login-stats dt span {
  color: #52df8d;
}

.login-stats dd {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.12;
}

.login-form-panel {
  padding: 88px 25px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #ffffff;
}

.login-info {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 14px;
  min-height: 74px;
  padding: 13px 17px 13px 15px;
  border-radius: 15px;
  background: var(--login-info);
  color: #48536b;
}

.login-info svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--login-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-info p {
  margin: 0;
  max-width: 44ch;
  color: #48536b;
  font-size: 16px;
  line-height: 1.55;
}

.login-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  border-bottom: 1px solid #d3dbeb;
}

.login-tab {
  min-width: 114px;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #66718b;
  font-weight: 900;
  cursor: pointer;
}

.login-tab svg,
.login-input-shell svg,
.login-submit svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-tab.is-active {
  position: relative;
  background: #dbeaff;
  color: #005cd7;
}

.login-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: var(--login-blue);
}

.login-form {
  margin-top: 42px;
}

.login-field {
  display: grid;
  gap: 9px;
}

.login-field label {
  color: #3e455a;
  font-size: 16px;
  font-weight: 900;
}

.login-input-shell {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  min-height: 49px;
  border: 1px solid #aebbd8;
  border-radius: 7px;
  background: #ffffff;
  color: #66718b;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-input-shell:focus-within {
  border-color: var(--login-focus);
  box-shadow: 0 0 0 3px rgba(30, 109, 232, 0.16);
}

.login-input-shell svg {
  margin-left: 16px;
}

.login-input-shell input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #22293e;
  font-size: 18px;
  font-weight: 400;
}

.login-input-shell input::placeholder {
  color: #737c94;
  opacity: 1;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 7px;
  background: #1e6de8;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:disabled {
  background: #8f9cbe;
  color: #ffffff;
  cursor: not-allowed;
}

.login-submit:not(:disabled):hover {
  background: #0f5ed6;
  box-shadow: 0 8px 16px rgba(30, 109, 232, 0.16);
}

.login-submit:not(:disabled):active {
  transform: translateY(1px);
}

.login-submit.is-loading {
  background: #0f5ed6;
  cursor: progress;
}

.login-submit.is-loading svg {
  animation: login-pulse 900ms ease-in-out infinite alternate;
}

.login-forgot {
  align-self: flex-end;
  margin-top: 18px;
  color: #0000ee;
  font-size: 16px;
  text-decoration: underline;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 42px 0 39px;
  color: #4d566b;
  font-size: 18px;
  font-weight: 800;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: #d2dbea;
}

.login-socials {
  display: grid;
  gap: 10px;
}

.login-social {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  border: 1px solid #aebbd8;
  border-radius: 7px;
  background: #ffffff;
  color: #3f4558;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.login-social:hover {
  border-color: var(--login-blue);
  background: #f7fbff;
}

.login-social:active {
  transform: translateY(1px);
}

.google-mark {
  color: #4285f4;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.facebook-mark {
  color: #4267b2;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.login-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #145c2a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.login-status.is-error {
  color: #b02727;
}

.login-create-bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 33px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1e6de8 0%, #0042a9 100%);
  box-shadow: 0 3px 8px rgba(9, 60, 151, 0.25);
  color: #ffffff;
}

.login-create-bar div {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.login-create-logo {
  width: 76px;
  height: 52px;
  flex: 0 0 auto;
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-create-bar strong {
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-create-bar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #ffffff;
  border-radius: 7px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.login-create-bar a:hover {
  background: #ffffff;
  color: #0649b1;
}

:where(a, button, input):focus-visible {
  outline: 3px solid rgba(255, 201, 74, 0.95);
  outline-offset: 3px;
}

.login-form-panel :where(a, button, input):focus-visible {
  outline-color: rgba(30, 109, 232, 0.75);
}

@keyframes login-pulse {
  from {
    opacity: 0.55;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 860px) {
  .login-shell {
    width: min(620px, calc(100% - 28px));
    justify-content: flex-start;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
    padding: 28px 22px 24px;
  }

  .login-photo-cloud {
    width: 292px;
    height: 206px;
    margin-top: 20px;
  }

  .login-photo-tile {
    width: 90px;
    height: 90px;
  }

  .tile-yellow {
    left: 34px;
    top: 6px;
  }

  .tile-green {
    left: 14px;
    top: 94px;
  }

  .tile-purple {
    left: 122px;
    top: 58px;
  }

  .tile-blue {
    left: 94px;
    top: 136px;
  }

  .tile-pink {
    left: 204px;
    top: 104px;
  }

  .login-stats {
    max-width: 360px;
    margin-top: 8px;
  }

  .login-form-panel {
    padding: 34px 24px 30px;
  }
}

@media (max-width: 560px) {
  .login-shell {
    width: min(100% - 20px, 430px);
    padding: 12px 0 18px;
    gap: 12px;
  }

  .login-card,
  .login-create-bar {
    border-radius: 12px;
  }

  .login-brand-panel {
    padding: 24px 18px 18px;
  }

  .login-logo {
    width: 160px;
  }

  .login-brand-panel h1 {
    font-size: 28px;
    white-space: normal;
  }

  .login-brand-panel p {
    margin-top: 14px;
    font-size: 13px;
  }

  .login-photo-cloud {
    width: 265px;
    height: 170px;
    margin: 16px auto 8px;
  }

  .login-photo-tile {
    width: 78px;
    height: 78px;
    border-radius: 14px;
  }

  .tile-yellow {
    left: 36px;
    top: 2px;
  }

  .tile-green {
    left: 16px;
    top: 74px;
  }

  .tile-purple {
    left: 111px;
    top: 45px;
  }

  .tile-blue {
    left: 88px;
    top: 108px;
  }

  .tile-pink {
    left: 184px;
    top: 82px;
  }

  .login-stats {
    gap: 8px;
  }

  .login-stats div {
    min-height: 58px;
    padding: 8px 4px;
  }

  .login-stats dt {
    font-size: 20px;
  }

  .login-stats dd {
    font-size: 11px;
  }

  .login-form-panel {
    padding: 26px 18px 24px;
  }

  .login-info {
    grid-template-columns: 24px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .login-info p {
    font-size: 14px;
  }

  .login-tabs {
    gap: 6px;
  }

  .login-tab {
    min-width: 0;
    width: 50%;
    font-size: 15px;
  }

  .login-form {
    margin-top: 30px;
  }

  .login-input-shell input,
  .login-submit,
  .login-social {
    font-size: 16px;
  }

  .login-divider {
    margin: 30px 0 28px;
  }

  .login-create-bar {
    min-height: auto;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .login-create-bar div {
    justify-content: center;
    gap: 14px;
  }

  .login-create-logo {
    width: 62px;
    height: 44px;
  }

  .login-create-bar strong {
    font-size: 20px;
  }

  .login-create-bar a {
    width: 100%;
  }
}
