:root {
  --brand-deep: #003f42;
  --brand: #007d72;
  --brand-bright: #15d3c0;
  --ink: #07142d;
  --body: #263a58;
  --muted: #61728e;
  --line: #d6deea;
  --error: #d71920;
  --error-bg: #fff4f4;
  --success: #08775f;
  --success-bg: #effcf7;
  --focus: rgba(0, 125, 114, .18);
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Outfit", var(--font-ui);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: #f7f9fb; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-ui); background: #f7f9fb; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-shell {
  width: min(1240px, 100%);
  height: min(760px, calc(100vh - 48px));
  min-height: 680px;
  display: grid;
  grid-template-columns: 55.4% 44.6%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 31, 48, .16);
}

.showcase-side {
  position: relative;
  overflow: hidden;
  padding: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 30%, rgba(0, 156, 145, .34), transparent 34%),
    linear-gradient(145deg, #004d4e 0%, var(--brand-deep) 50%, #002d3a 100%);
}
.showcase-side::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 166, .2), transparent 67%);
  pointer-events: none;
}
.showcase-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.orbit-art {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: -205px;
  width: 405px;
  height: 470px;
  border: 1px solid rgba(18, 216, 200, .45);
  border-radius: 50%;
  transform: rotate(-15deg);
  box-shadow: 0 0 0 37px rgba(0, 156, 145, .07), 0 0 0 83px rgba(0, 156, 145, .045);
}
.orbit-art::before, .orbit-art::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #04a69f;
  box-shadow: 0 0 12px rgba(21, 211, 192, .65);
}
.orbit-art::before { right: 35px; top: 112px; }
.orbit-art::after { right: 2px; bottom: 130px; }
.dot-field {
  position: absolute;
  width: 86px;
  height: 118px;
  opacity: .38;
  background-image: radial-gradient(circle, #09a9a8 1.7px, transparent 2px);
  background-size: 18px 18px;
}
.dot-field-top { top: 28px; right: 2px; }
.dot-field-bottom { top: 262px; right: 2px; }

.brand-block { text-align: center; }
.brand-logo {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: #fff;
  box-shadow: 0 7px 12px rgba(0, 18, 25, .22);
}
.brand-kicker {
  margin: 0 0 4px;
  color: #18d6c8;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-name {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 4.25rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.brand-rule { display: block; width: 54px; height: 5px; margin: 14px auto 18px; border-radius: 999px; background: var(--brand-bright); }
.product-description { text-align: center; }
.product-description h2 {
  margin: 0 0 13px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.product-description p { margin: 0; color: #d7e8eb; font-size: .91rem; line-height: 1.48; }

.feature-list { width: 100%; align-self: flex-start; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.feature-item {
  min-height: 178px;
  padding: 15px 17px;
  border: 1px solid rgba(71, 208, 197, .35);
  border-radius: 11px;
  background: rgba(0, 83, 82, .5);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 150, 143, .55);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item h3 { margin: 0 0 7px; color: #fff; font-family: var(--font-heading); font-size: .84rem; font-weight: 700; }
.feature-item p { margin: 0; color: #d2e2e6; font-size: .76rem; line-height: 1.5; }
.secure-environment {
  width: min(100%, 694px);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 11px;
  background: rgba(2, 97, 102, .58);
}
.secure-environment-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a7fff5;
  background: rgba(8, 153, 148, .48);
}
.secure-environment-icon svg { width: 21px; height: 21px; }
.secure-environment p { margin: 0; font-size: .74rem; line-height: 1.4; }
.secure-environment strong, .secure-environment span { display: block; }
.secure-environment strong { color: #fff; font-weight: 700; margin-bottom: 3px; }
.secure-environment span { color: #d9e9eb; }

.form-side { min-width: 0; display: grid; place-items: center; padding: 40px; background: #fff; }
.form-wrapper { min-width: 0; width: min(100%, 460px); transform: none; }
.form-header { text-align: center; margin-bottom: 23px; }
.security-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--brand);
  background: #eef3f6;
}
.security-mark svg { width: 24px; height: 24px; }
.form-header h2 { margin: 0; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.form-header p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.alert-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  margin-bottom: 22px;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: .86rem;
  line-height: 1.4;
}
.alert-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.alert-error { color: var(--error); border: 1px solid #ff969a; background: var(--error-bg); }
.alert-success { color: var(--success); border: 1px solid #8bd0b6; background: var(--success-bg); }
.google-login-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #263a58;
  background: #fff;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.google-login-button:hover { border-color: #94a3b8; background: #f8fafc; }
.google-login-button:focus-visible { outline: 3px solid rgba(66, 133, 244, .25); outline-offset: 3px; }
.google-login-button svg { width: 22px; height: 22px; flex: 0 0 22px; }
.google-login-button[hidden], .login-divider[hidden] { display: none; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #718096; font-size: .72rem; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: #e2e8f0; }
.login-divider span { flex: 0 0 auto; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { color: var(--ink); font-size: .86rem; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap input, .modal-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 52px 0 58px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: .9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.input-wrap input::placeholder, .modal-form input::placeholder { color: #66758c; opacity: 1; }
.input-wrap input:hover, .modal-form input:hover { border-color: #94a3b8; }
.input-wrap input:focus, .modal-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.input-icon {
  position: absolute;
  z-index: 1;
  left: 19px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: #93a2b7;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-wrap:focus-within .input-icon { color: var(--brand); }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle svg { width: 25px; height: 25px; }
.password-toggle:hover { background: #eef8f6; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: -2px; }
.remember-option { display: inline-flex; align-items: center; gap: 10px; color: var(--body); font-size: .92rem; cursor: pointer; }
.remember-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.text-action { padding: 4px; border: 0; color: var(--brand); background: transparent; font-size: .92rem; cursor: pointer; }
.text-action:hover { text-decoration: underline; }

.primary-button, .secondary-button {
  min-height: 50px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #007c72, #008e82);
  font-family: var(--font-heading);
  font-size: 1.02rem;
}
.primary-button:hover { background: linear-gradient(90deg, #006d65, #007f75); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { opacity: .62; cursor: wait; transform: none; }
.btn-arrow { width: 21px; height: 21px; }
.btn-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, .36);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-footer { margin-top: 27px; color: #72819b; text-align: center; font-size: .7rem; }
.form-footer p { margin: 0; overflow-wrap: anywhere; }
.form-footer p + p { margin-top: 12px; }
.legal-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.legal-links a { color: var(--brand); font-weight: 650; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.protected-session { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand); font-weight: 600; }
.protected-session svg { width: 17px; height: 17px; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(0, 125, 114, .35); outline-offset: 3px; }

.modal-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 14px; background: transparent; color: var(--ink); }
.modal-dialog::backdrop { background: rgba(4, 18, 31, .68); }
.modal-card { padding: 30px; border-radius: 14px; background: #fff; }
.modal-header { margin-bottom: 23px; text-align: center; }
.modal-header h2 { margin: 10px 0 5px; font-family: var(--font-heading); font-size: 1.45rem; }
.modal-header p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.modal-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: var(--brand); background: #edf7f5; }
.modal-icon svg { width: 24px; height: 24px; }
.code-inputs-container { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.code-digit-input { width: 50px; height: 56px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 1.25rem; font-weight: 700; }
.modal-resend-row { margin-bottom: 22px; color: var(--muted); text-align: center; font-size: .88rem; }
.modal-form { display: flex; flex-direction: column; gap: 20px; }
.modal-form input { min-height: 50px; padding: 0 14px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .primary-button, .modal-actions .secondary-button { min-height: 48px; flex: 1; }
.secondary-button { border: 1px solid var(--line); color: var(--body); background: #fff; }
.secondary-button:hover { border-color: #9aa8ba; background: #f7f9fb; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1250px) {
  .login-page { padding: 20px; }
  .login-shell { height: min(740px, calc(100vh - 40px)); min-height: 680px; grid-template-columns: 52% 48%; }
  .showcase-side { padding: 28px; }
  .brand-logo { width: 96px; height: 96px; margin-bottom: 12px; }
  .brand-name { font-size: 3.45rem; }
  .brand-rule { margin: 11px auto 15px; }
  .feature-list { gap: 10px; margin-top: 16px; }
  .feature-item { min-height: 158px; padding: 13px; }
  .feature-icon { width: 46px; height: 46px; margin-bottom: 10px; }
  .form-side { padding: 30px; }
  .form-footer { margin-top: 22px; }
}
@media (max-width: 920px) {
  .login-page { padding: 0; place-items: stretch; }
  .login-shell { height: auto; min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
  .showcase-side { display: none; }
  .form-side { min-height: 100vh; padding: 36px 24px; }
  .form-wrapper { width: min(100%, 520px); transform: none; }
  .form-header { margin-bottom: 26px; }
  .security-mark { width: 58px; height: 58px; }
}
@media (max-width: 560px) {
  .form-side { align-items: start; padding: 28px 20px; }
  .form-header h2 { font-size: 1.75rem; }
  .form-header p { font-size: .9rem; }
  .alert-box { margin-bottom: 24px; }
  .auth-form { gap: 22px; }
  .form-options { align-items: flex-start; flex-direction: column; gap: 14px; }
  .text-action { min-height: 44px; margin: -8px 0 -8px -4px; }
  .form-footer { margin-top: 32px; }
  .protected-session { align-items: flex-start; }
  .code-inputs-container { gap: 5px; }
  .code-digit-input { width: 40px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
