/* SmartSSO login — lively multi-color (Google-inspired) */

:root {
  --ink: #202124;
  --ink-soft: #5f6368;
  --ink-muted: #80868b;
  --paper: #f8f9fa;
  --white: #ffffff;
  --line: rgba(60, 64, 67, 0.15);
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --brand: #4285f4;
  --brand-deep: #1a73e8;
  --brand-glow: rgba(66, 133, 244, 0.28);
  --gold: #fbbc05;
  --warn: #d93025;
  --radius: 16px;
  --font: "Product Sans", "Google Sans", "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.login {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 100%;
}

/* ---- Left showcase ---- */
.appsbj-showcase {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 22%, rgba(66, 133, 244, 0.22), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(234, 67, 53, 0.16), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(251, 188, 5, 0.22), transparent 34%),
    radial-gradient(circle at 22% 82%, rgba(52, 168, 83, 0.18), transparent 30%),
    linear-gradient(160deg, #ffffff 0%, #f8f9fa 55%, #eef3ff 100%);
  padding: clamp(28px, 5vh, 56px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  animation: appsbj-fade 0.7s ease-out both;
}

.appsbj-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 133, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 35% 40%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 35% 40%, #000 15%, transparent 72%);
  pointer-events: none;
  animation: appsbj-grid 10s ease-in-out infinite alternate;
}

.appsbj-orbit {
  position: absolute;
  right: -6%;
  top: 16%;
  width: min(420px, 55vw);
  aspect-ratio: 1;
  pointer-events: none;
}

.appsbj-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(66, 133, 244, 0.2);
  animation: appsbj-spin 36s linear infinite;
}

.appsbj-orbit__ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(234, 67, 53, 0.22);
  animation-duration: 28s;
  animation-direction: reverse;
}

.appsbj-orbit__ring:nth-child(3) {
  inset: 26%;
  border-color: rgba(52, 168, 83, 0.28);
  animation-duration: 22s;
}

.appsbj-orbit__core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--blue), var(--red), var(--yellow), var(--green), var(--blue));
  box-shadow: 0 12px 40px var(--brand-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.06em;
  color: #fff;
  animation: appsbj-pulse 4.5s ease-in-out infinite;
}

.appsbj-orbit__core::after {
  content: "SSO";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 800;
}

.appsbj-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.appsbj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.appsbj-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--blue) 0 50%, transparent 50%) top left / 50% 50% no-repeat,
    linear-gradient(225deg, var(--red) 0 50%, transparent 50%) top right / 50% 50% no-repeat,
    linear-gradient(45deg, var(--green) 0 50%, transparent 50%) bottom left / 50% 50% no-repeat,
    linear-gradient(315deg, var(--yellow) 0 50%, transparent 50%) bottom right / 50% 50% no-repeat,
    #fff;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.25);
}

.appsbj-brand__mark::after {
  content: "SSO";
  position: absolute;
  inset: 5px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appsbj-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.appsbj-brand__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.appsbj-brand__name span {
  color: var(--blue);
}

.appsbj-brand__domain {
  display: block;
  margin-top: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.2;
}

.appsbj-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.appsbj-home:hover {
  background: #e8f0fe;
  color: var(--blue);
  border-color: #aecbfa;
}

.appsbj-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 48px 0 auto;
  animation: appsbj-rise 0.85s 0.08s ease-out both;
}

.appsbj-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.appsbj-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.appsbj-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.appsbj-copy p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 42em;
}

.appsbj-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.appsbj-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  animation: appsbj-rise 0.7s ease-out both;
}

.appsbj-features li:nth-child(1) { animation-delay: 0.18s; }
.appsbj-features li:nth-child(2) { animation-delay: 0.26s; }
.appsbj-features li:nth-child(3) { animation-delay: 0.34s; }
.appsbj-features li:nth-child(4) { animation-delay: 0.42s; }

.appsbj-features li i {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e8f0fe;
  border: 1px solid #aecbfa;
  position: relative;
}

.appsbj-features li:nth-child(2) i { background: #fce8e6; border-color: #f6aea9; }
.appsbj-features li:nth-child(3) i { background: #fef7e0; border-color: #fdd663; }
.appsbj-features li:nth-child(4) i { background: #e6f4ea; border-color: #a8dab5; }

.appsbj-features li i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.appsbj-features li:nth-child(2) i::after { border-color: var(--red); }
.appsbj-features li:nth-child(3) i::after { border-color: #e37400; }
.appsbj-features li:nth-child(4) i::after { border-color: var(--green); }

.appsbj-foot-left {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---- Right form ---- */
.appsbj-auth {
  position: relative;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
  animation: appsbj-rise 0.8s 0.1s ease-out both;
  border-left: 1px solid var(--line);
}

.box-login {
  width: min(400px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06), 0 12px 32px rgba(66, 133, 244, 0.08);
}

.appsbj-panel-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.appsbj-panel-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.appsbj-panel-desc {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.login .box-login .label {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 48px;
  line-height: 48px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-sizing: border-box;
  margin-top: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.login .box-login .label:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.15);
}

.login .box-login .label .ic {
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px 0 0 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login .box-login .label .ic svg {
  stroke: var(--blue);
}

.login .box-login .label .ic img,
.login .box-login .label .ic svg {
  width: 18px;
  height: 18px;
  position: static;
  display: block;
}

.login .box-login .label .input {
  width: calc(100% - 48px);
  height: 48px;
  margin-left: 48px;
}

.login .box-login .label .input input,
.login .box-login .label .input .input-display {
  width: 100%;
  height: 100%;
  margin-left: 0;
  padding: 0 18px 0 14px;
  line-height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  box-sizing: border-box;
}

.login .box-login .label.appsbj-meta {
  height: auto;
  line-height: 1.4;
  background: none;
  border: 0;
  margin-top: 14px;
  border-radius: 0;
  overflow: visible;
}

.login .box-login .label.appsbj-meta:focus-within {
  box-shadow: none;
}

.login .box-login .custom-checkbox {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}

.login .box-login .custom-checkbox span {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: #fff;
  border: 1.5px solid rgba(60, 64, 67, 0.35);
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  z-index: 1;
}

.login .box-login .custom-checkbox.active span {
  background: var(--blue);
  border-color: var(--blue);
}

.login .box-login .custom-checkbox.active span i {
  position: absolute;
  top: 0;
  left: 4px;
  width: 5px;
  height: 9px;
  border-color: #fff;
  border-style: solid;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: block;
}

.login .box-login .custom-checkbox input[type=checkbox] {
  visibility: hidden;
  margin-right: 10px;
}

.login .box-login .custom-checkbox label {
  margin-left: 4px;
}

.login .box-login .appsbj-warn {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warn);
}

.login .box-login .btn-login {
  display: block;
  width: 100%;
  height: 48px;
  margin: 22px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.28);
}

.login .box-login .btn-login:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(66, 133, 244, 0.36);
}

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

.appsbj-foot {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

.appsbj-compat {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

#msg {
  color: var(--warn);
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: #fff;
  min-height: 160px;
  height: auto;
  width: auto;
  padding: 48px 20px;
  text-align: center;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  z-index: 5;
  box-sizing: border-box;
}

.login > .bg { display: none !important; }

@keyframes appsbj-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appsbj-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes appsbj-spin {
  to { transform: rotate(360deg); }
}

@keyframes appsbj-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px var(--brand-glow); }
  50% { transform: scale(1.04); box-shadow: 0 0 60px rgba(66, 133, 244, 0.4); }
}

@keyframes appsbj-grid {
  from { opacity: 0.35; }
  to { opacity: 0.75; }
}

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .login {
    grid-template-columns: 1fr;
    position: relative;
    height: auto;
    min-height: 100%;
  }
  .appsbj-showcase {
    min-height: auto;
    padding-bottom: 36px;
  }
  .appsbj-orbit {
    width: 220px;
    top: auto;
    bottom: -40px;
    right: -30px;
    opacity: 0.55;
  }
  .appsbj-copy {
    margin: 28px 0 20px;
  }
  .appsbj-auth {
    padding: 24px 16px 40px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .box-login {
    padding: 28px 20px 22px;
  }
}
