.ac-page {
  background: #f4f6f8;
  padding: 36px 16px 72px;
}

.ac-page.is-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 32px 20px 72px;
}

.ac-shell {
  width: 100%;
  max-width: 920px;
  animation: ac-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ac-card {
  background: #fff;
  border: 1px solid #e6ebef;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(20, 24, 31, 0.07);
}

.ac-card--split {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
  overflow: hidden;
  min-height: 360px;
}

.ac-pane {
  position: relative;
  background: #1c2331;
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.ac-pane::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(32, 177, 170, 0.22);
  animation: ac-orb 8s ease-in-out infinite;
}

.ac-pane::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: -50px;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(32, 177, 170, 0.14);
  animation: ac-orb 10s ease-in-out infinite reverse;
}

.ac-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #20b1aa;
}

.ac-pane h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ac-pane p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 32ch;
}

.ac-form-side {
  padding: 32px 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ac-alert {
  background: #fdecec;
  color: #9b2c2c;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.ac-sso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ac-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid #d7dee3;
  border-radius: 12px;
  background: #fff;
  color: #1c2331;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ac-sso-btn:hover {
  border-color: #20b1aa;
  color: #1c2331;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(32, 177, 170, 0.14);
}

.ac-sso-btn.is-off {
  opacity: 0.5;
  pointer-events: none;
}

.ac-sso-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.ac-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: #8a949c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-or::before,
.ac-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6ebef;
}

.ac-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ac-field { margin-bottom: 0; }

.ac-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #3d4750;
}

.ac-field input {
  width: 100%;
  border: 1px solid #d7dee3;
  border-radius: 12px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fbfcfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ac-field input:focus {
  outline: none;
  background: #fff;
  border-color: #20b1aa;
  box-shadow: 0 0 0 4px rgba(32, 177, 170, 0.12);
}

.ac-submit {
  width: 100%;
  border: 0;
  background: #20b1aa;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-submit:hover {
  background: #189a94;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(32, 177, 170, 0.28);
}

.ac-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: #6b757c;
  line-height: 1.45;
  text-align: center;
}

.ac-hint a {
  color: #147f7a;
  font-weight: 600;
  text-decoration: none;
}

.ac-hint a:hover { text-decoration: underline; }

@keyframes ac-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ac-orb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, 12px); }
}

@media (max-width: 800px) {
  .ac-card--split,
  .ac-sso,
  .ac-fields {
    grid-template-columns: 1fr;
  }

  .ac-pane {
    padding: 26px 22px 22px;
    min-height: 0;
  }

  .ac-form-side { padding: 22px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-shell,
  .ac-pane::before,
  .ac-pane::after,
  .ac-sso-btn,
  .ac-submit {
    animation: none;
    transition: none;
  }

  .ac-sso-btn:hover,
  .ac-submit:hover { transform: none; }
}
