:root {
  --bg-main: #eef6fb;
  --bg-soft: rgba(255, 255, 255, 0.55);
  --card: rgba(255, 255, 255, 0.58);
  --text: #213547;
  --muted: #70839a;
  --line: rgba(146, 184, 221, 0.45);
  --primary: #51cfe0;
  --primary-2: #8ae6c1;
  --success: #1d8f74;
  --success-soft: rgba(29, 143, 116, 0.12);
  --danger: #c84b61;
  --danger-soft: rgba(200, 75, 97, 0.10);
  --shadow: 0 18px 45px rgba(77, 114, 145, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(81, 207, 224, 0.20), transparent 24%),
    radial-gradient(circle at bottom right, rgba(138, 230, 193, 0.18), transparent 20%),
    linear-gradient(180deg, #edf5fb 0%, #e8f1f8 100%);
}

body {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-layout {
  width: min(1220px, 100%);
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-form-panel {
      order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.18));
}

.auth-brand-panel {
     order: 1;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.35);
  padding: 42px 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.16)),
    radial-gradient(circle at top left, rgba(81, 207, 224, 0.12), transparent 30%);
  border-left: 1px solid rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.auth-card {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 14px 40px rgba(109, 145, 177, 0.12);
}

.auth-mobile-brand {
  display: none;
}

.auth-logo {
  width: 250px;
  max-width: 100%;
  height: auto;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(81, 207, 224, 0.14);
  color: #3383a3;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(81, 207, 224, 0.16);
}

.auth-brand-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: #244259;
}

.auth-description {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-platform-list {
  display: grid;
  gap: 14px;
}

.auth-platform-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(188, 214, 236, 0.55);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.auth-platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(180deg, rgba(81, 207, 224, 0.18), rgba(138, 230, 193, 0.18));
  border: 1px solid rgba(81, 207, 224, 0.18);
}

.auth-platform-item strong {
  display: block;
  margin-bottom: 4px;
  color: #28455d;
  font-size: 0.98rem;
}

.auth-platform-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-benefits-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.44);
  border: 1px solid rgba(180, 210, 234, 0.50);
  backdrop-filter: blur(10px);
}

.auth-benefits-card strong {
  display: block;
  margin-bottom: 8px;
  color: #28455d;
}

.auth-benefits-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card-header {
  margin-bottom: 18px;
}

.auth-card-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #26455d;
}

.auth-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: rgba(239, 247, 253, 0.9);
  border: 1px solid rgba(174, 205, 231, 0.45);
  border-radius: 999px;
  margin: 20px 0 22px;
}

.auth-switch__btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: .25s ease;
}

.auth-switch__btn.is-active {
  color: #114457;
  background: linear-gradient(90deg, rgba(81, 207, 224, 0.85), rgba(138, 230, 193, 0.85));
  box-shadow: 0 10px 22px rgba(81, 207, 224, 0.18);
}

.auth-alert {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.94rem;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.auth-alert--error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(200, 75, 97, 0.18);
}

.auth-alert--success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(29, 143, 116, 0.18);
}

.auth-alert ul {
  margin: 0;
  padding-left: 18px;
}

.auth-form {
  display: none;
  animation: fadeSlide .22s ease;
}

.auth-form.is-active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #33516b;
}

.auth-field input {
  width: 100%;
  border: 1px solid rgba(174, 205, 231, 0.55);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  font-size: 0.97rem;
  outline: none;
  transition: .2s ease;
  background: rgba(255,255,255,0.72);
  color: var(--text);
}

.auth-field input::placeholder {
  color: #93a5b8;
}

.auth-field input:focus {
  border-color: rgba(81, 207, 224, 0.75);
  box-shadow: 0 0 0 4px rgba(81, 207, 224, 0.12);
}

.auth-helper {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 74px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: rgba(81, 207, 224, 0.12);
  color: #2f738e;
  font-weight: 700;
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
}

.auth-checkbox {
  margin-top: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-checkbox label {
  display: inline-block;
}

.auth-checkbox input {
  margin-right: 8px;
}

.auth-checkbox a {
  color: #2f738e;
  text-decoration: none;
}

.auth-form-actions {
  margin-top: 20px;
}

.auth-submit-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(90deg, #53c7ef, #7edfcf);
  color: #133548;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(83, 199, 239, 0.16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px rgba(83, 199, 239, 0.22);
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-form-panel {
    order: 1;
    padding: 18px 18px 10px;
  }

  .auth-brand-panel {
    order: 2;
    padding: 8px 18px 18px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.36);
    background: transparent;
  }

  .auth-mobile-brand {
    display: block;
    margin-bottom: 18px;
    text-align: center;
  }

  .auth-mobile-title {
    margin: 8px 0 8px;
    font-size: 1.65rem;
    color: #254860;
    line-height: 1.15;
  }

  .auth-mobile-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
  }

  .auth-card-header {
    display: none;
  }

  .auth-brand-top,
  .auth-brand-content > .auth-kicker,
  .auth-brand-content > h1,
  .auth-brand-content > .auth-description {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 10px;
  }

  .auth-layout {
    border-radius: 24px;
  }

  .auth-form-panel {
    padding: 12px 12px 8px;
  }

  .auth-brand-panel {
    padding: 8px 12px 14px;
  }

  .auth-card {
    width: 100%;
    padding: 18px 14px;
    border-radius: 22px;
  }

  .auth-logo {
    width: 200px;
  }

  .auth-mobile-title {
    font-size: 1.4rem;
  }

  .auth-switch__btn {
    font-size: 0.9rem;
    padding: 11px 10px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-platform-item {
    grid-template-columns: 42px 1fr;
    padding: 13px;
  }

  .auth-platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }
}


.password-rules {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.password-rule {
  font-size: 0.85rem;
  color: #70839a;
  transition: .2s ease;
}

.password-rule.is-valid {
  color: #1d8f74;
  font-weight: 600;
}

.password-rule.is-invalid {
  color: #c84b61;
  font-weight: 600;
}

.password-match-message {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 18px;
}

.password-match-message.is-valid {
  color: #1d8f74;
  font-weight: 600;
}

.password-match-message.is-invalid {
  color: #c84b61;
  font-weight: 600;
}
