.auth-panel{margin-top:54px;border:1px solid #392448;border-radius:20px;padding:42px;background:rgba(16,10,22,.88);box-shadow:0 30px 90px rgba(0,0,0,.35)}.auth-panel h1{font-size:44px;line-height:1.05;letter-spacing:-.04em;margin:0 0 14px}.auth-panel>p{color:#b8a9c4}.auth-actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}.auth-button{font:inherit;border:0;cursor:pointer}.identity-card{white-space:pre-wrap;margin:26px 0;padding:18px;border:1px solid #392448;border-radius:12px;background:#08050b;color:#d8b6ff}.auth-status{margin-top:20px;color:#b8a9c4;font-size:14px;min-height:24px}[hidden]{display:none!important}@media(max-width:600px){.auth-panel{padding:28px}.auth-panel h1{font-size:38px}.auth-actions>*{width:100%;text-align:center}}
/* ==========================================================
   Aethelis authentication actions
   ========================================================== */

/* Sign in + sign out */
#google-signin,
#signout,
#workspace-signout {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(238, 77, 255, 0.42);
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #7c4dff 0%,
      #b54cff 52%,
      #ee4dff 100%
    );
  box-shadow:
    0 7px 22px rgba(181, 76, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

#google-signin:hover,
#signout:hover,
#workspace-signout:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 10px 28px rgba(181, 76, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#google-signin:active,
#signout:active,
#workspace-signout:active {
  transform: translateY(0);
}

#google-signin:focus-visible,
#signout:focus-visible,
#workspace-signout:focus-visible {
  outline: 2px solid #f3b4ff;
  outline-offset: 3px;
}


/* Continue to workspace — intentionally distinct */
#signed-in .auth-actions a[href="./workspace.html"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(205, 126, 255, 0.62);
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      rgba(124, 77, 255, 0.14),
      rgba(238, 77, 255, 0.08)
    ),
    #100a16;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(181, 76, 255, 0.04);
  color: #f4eaff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

#signed-in .auth-actions a[href="./workspace.html"]::after {
  content: "→";
  color: #ee8cff;
  font-size: 16px;
  transition: transform 160ms ease;
}

#signed-in .auth-actions a[href="./workspace.html"]:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 77, 255, 0.9);
  background:
    linear-gradient(
      135deg,
      rgba(124, 77, 255, 0.22),
      rgba(238, 77, 255, 0.13)
    ),
    #100a16;
  box-shadow:
    0 8px 26px rgba(181, 76, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#signed-in
.auth-actions
a[href="./workspace.html"]:hover::after {
  transform: translateX(3px);
}

#signed-in
.auth-actions
a[href="./workspace.html"]:focus-visible {
  outline: 2px solid #f3b4ff;
  outline-offset: 3px;
}


/* Keep workspace header sign out compact */
#workspace-signout {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

/* Passwordless work-email sign-in */
.email-signin-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.email-signin-form label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.email-signin-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(220, 150, 255, 0.32);
  border-radius: 10px;
  background: rgba(12, 7, 22, 0.72);
  color: #ffffff;
  font: inherit;
}

.email-signin-form input:focus {
  outline: 2px solid rgba(238, 77, 255, 0.55);
  outline-offset: 2px;
}

.email-signin-note {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.78;
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  opacity: 0.65;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.auth-divider span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================
   Launch readiness — Aethelis sign-in experience
   ========================================================== */

.platform-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%,
      rgba(124, 77, 255, .16),
      transparent 30%),
    radial-gradient(circle at 82% 28%,
      rgba(238, 77, 255, .11),
      transparent 28%),
    radial-gradient(circle at 50% 90%,
      rgba(112, 44, 190, .10),
      transparent 34%),
    #07040b;
}

.platform-body::before,
.platform-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.platform-body::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(215,174,255,.55) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255,255,255,.38) 0 .8px, transparent 1.2px);
  background-size:
    83px 83px,
    137px 137px,
    191px 191px;
  background-position:
    7px 19px,
    43px 71px,
    91px 23px;
  opacity: .34;
}

.platform-body::after {
  background:
    radial-gradient(circle at 50% 35%,
      transparent 0,
      transparent 28%,
      rgba(4,2,8,.36) 100%);
}

.platform-shell {
  position: relative;
  z-index: 1;
}

.platform-body .brand {
  display: inline-flex;
  position: relative;
  z-index: 2;
}

.platform-body .auth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 102, 255, .32);
  background:
    linear-gradient(
      145deg,
      rgba(25, 12, 38, .91),
      rgba(11, 6, 18, .94)
    );
  box-shadow:
    0 30px 90px rgba(0,0,0,.44),
    0 0 55px rgba(133, 60, 200, .10),
    inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
}

.platform-body .auth-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -125px;
  border-radius: 50%;
  background: rgba(210, 78, 255, .10);
  filter: blur(24px);
  pointer-events: none;
}

.platform-body .auth-panel > * {
  position: relative;
  z-index: 1;
}

.platform-body .auth-panel .eyebrow {
  color: #ee8cff;
}

.platform-body .auth-panel h1 {
  color: #fff;
}

.platform-body .email-signin-form {
  padding: 18px;
  border: 1px solid rgba(207,102,255,.20);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.platform-body .email-signin-form input {
  min-height: 48px;
  border-color: rgba(207,102,255,.30);
  background: rgba(7,4,12,.72);
}

.platform-body .email-signin-form input::placeholder {
  color: rgba(230,215,240,.48);
}

.platform-body .email-signin-form .auth-button {
  min-height: 48px;
  border: 1px solid rgba(238,77,255,.48);
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      rgba(124,77,255,.22),
      rgba(238,77,255,.17)
    );
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.platform-body .email-signin-form .auth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(238,77,255,.88);
  box-shadow: 0 8px 25px rgba(181,76,255,.14);
}

.platform-body .identity-card {
  border-color: rgba(207,102,255,.28);
  background: rgba(7,4,12,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

@media (max-width: 600px) {
  .platform-body .email-signin-form {
    padding: 15px;
  }
}

/* ==========================================================
   Unprovisioned access actions
   ========================================================== */

#not-provisioned .auth-actions {
  align-items: center;
}

#not-provisioned .auth-actions a,
#not-provisioned .auth-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

#not-provisioned .auth-actions a {
  border: 1px solid rgba(238,77,255,.48);
  background:
    linear-gradient(
      135deg,
      #7c4dff 0%,
      #b54cff 52%,
      #ee4dff 100%
    );
  color: #fff;
  box-shadow:
    0 7px 22px rgba(181,76,255,.16),
    inset 0 1px 0 rgba(255,255,255,.15);
}

#not-provisioned .auth-actions button {
  border: 1px solid rgba(207,126,255,.42);
  background:
    linear-gradient(
      135deg,
      rgba(124,77,255,.14),
      rgba(238,77,255,.08)
    ),
    rgba(16,10,22,.88);
  color: #f4eaff;
}

#not-provisioned .auth-actions a:hover,
#not-provisioned .auth-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(238,77,255,.88);
  box-shadow: 0 9px 27px rgba(181,76,255,.18);
}

#not-provisioned .auth-actions a:focus-visible,
#not-provisioned .auth-actions button:focus-visible {
  outline: 2px solid #f3b4ff;
  outline-offset: 3px;
}

/* Themed Back to Aethelis control */
.auth-back,
a[href="./index.html"],
a[href="index.html"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(177, 132, 255, 0.38);
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.18),
    rgba(168, 85, 247, 0.10)
  );
  color: #f4efff;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(76, 29, 149, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.auth-back:hover,
a[href="./index.html"]:hover,
a[href="index.html"]:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 154, 255, 0.72);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.30),
    rgba(168, 85, 247, 0.18)
  );
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.22);
}

.auth-back:focus-visible,
a[href="./index.html"]:focus-visible,
a[href="index.html"]:focus-visible {
  outline: 2px solid rgba(216, 180, 254, 0.95);
  outline-offset: 3px;
}
