/* control-plane/src/oc8_cloud_controlplane/web/static/docking-station.css */

/* Transcribed from oc8/frontend/src/styles.css's Docking Station design
   (.oc8-docking-station / .oc8-octopus-companion), plus hand-written rules
   for the form elements this login screen doesn't have (signup form,
   social buttons, consent checkbox) -- see spec §4.4. */

* {
  box-sizing: border-box;
}

/* `hidden` must win over the display rules below (.oc8-social-buttons is
   display: flex), or the scripts' `el.hidden = true` does nothing. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: oklch(0.75 0.15 220);
}

@keyframes oc8-docking-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.7rem);
  }
}

@keyframes oc8-docking-bubble-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(1rem, -1.5rem, 0);
  }
}

@keyframes oc8-docking-thinking-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 1rem color-mix(in oklab, white 45%, transparent));
    transform: scale(1.04);
  }
}

@keyframes oc8-docking-celebrate {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  30% {
    transform: rotate(-4deg) translateY(-0.45rem);
  }
  60% {
    transform: rotate(4deg) translateY(-0.25rem);
  }
}

.oc8-docking-station {
  align-items: center;
  background:
    radial-gradient(circle at 14% 12%, oklch(0.65 0.2 285 / 0.42), transparent 32rem),
    radial-gradient(circle at 82% 84%, oklch(0.72 0.18 190 / 0.24), transparent 26rem),
    oklch(0.18 0.03 270);
  color: white;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
}

.oc8-docking-station__ambient {
  background-image:
    linear-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.05) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.oc8-docking-station__frame {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  margin: auto;
  max-width: 32rem;
  padding: 1.5rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

@media (min-width: 768px) {
  .oc8-docking-station__frame {
    flex-direction: row;
    gap: 3rem;
    max-width: 60rem;
  }
}

.oc8-docking-station__mascot {
  display: none;
}

@media (min-width: 768px) {
  .oc8-docking-station__mascot {
    align-items: center;
    display: flex;
    flex: 1 1 0%;
    justify-content: center;
  }
}

.oc8-docking-station__mascot .oc8-octopus-companion {
  margin-top: 0;
  width: min(100%, 18rem);
}

@media (min-width: 1024px) {
  .oc8-docking-station__mascot .oc8-octopus-companion {
    width: 22rem;
  }
}

.oc8-docking-station__title {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.oc8-docking-station__content {
  background: oklch(0.23 0.025 270 / 0.86);
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem oklch(0.08 0.04 270 / 0.45);
  flex-shrink: 0;
  padding: 1.5rem;
  width: min(100%, 28rem);
}

.oc8-docking-station__bubble {
  background: oklch(0.82 0.12 210 / 0.16);
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: 999px;
  position: absolute;
  animation: oc8-docking-bubble-drift 8s ease-in-out infinite;
}

.oc8-docking-station__bubble--one {
  height: 2.25rem;
  left: 12%;
  top: 21%;
  width: 2.25rem;
}

.oc8-docking-station__bubble--two {
  animation-delay: -3s;
  height: 1rem;
  right: 16%;
  top: 18%;
  width: 1rem;
}

.oc8-docking-station__bubble--three {
  animation-delay: -5s;
  bottom: 18%;
  height: 1.5rem;
  left: 20%;
  width: 1.5rem;
}

.oc8-octopus-companion {
  margin-top: 1rem;
  width: 7rem;
}

.oc8-octopus-companion img {
  animation: oc8-docking-float 4s ease-in-out infinite;
  display: block;
  height: auto;
  width: 100%;
}

.oc8-octopus-companion[data-mood="thinking"] img {
  animation: oc8-docking-thinking-pulse 1.8s ease-in-out infinite;
}

.oc8-octopus-companion[data-mood="celebrating"] img {
  animation: oc8-docking-celebrate 800ms ease-in-out 2;
}

@media (prefers-reduced-motion: reduce) {
  .oc8-docking-station *,
  .oc8-docking-station *::before,
  .oc8-docking-station *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Form elements below have no equivalent in oc8 Core's styles.css (that
   app styles its forms with Tailwind utility classes, out of scope here
   per spec §4.4 -- no Tailwind, no component library). Hand-written to
   fit the same dark card. */

.oc8-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.oc8-brand__logo {
  height: 2.5rem;
  width: auto;
}

.oc8-docking-station__content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.oc8-panel {
  text-align: center;
}

.oc8-panel p {
  color: oklch(0.75 0.02 270);
}

.oc8-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oc8-social-button {
  background: oklch(0.28 0.02 270);
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  text-align: center;
}

.oc8-social-button:hover {
  background: oklch(0.33 0.02 270);
}

.oc8-divider {
  align-items: center;
  color: oklch(0.6 0.02 270);
  display: flex;
  font-size: 0.75rem;
  gap: 0.75rem;
  margin: 1.5rem 0;
  text-transform: uppercase;
}

.oc8-divider::before,
.oc8-divider::after {
  border-top: 1px solid oklch(1 0 0 / 0.16);
  content: "";
  flex: 1;
}

.oc8-field {
  margin-bottom: 1rem;
}

.oc8-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.oc8-field input[type="email"],
.oc8-field input[type="password"],
.oc8-field input[type="text"] {
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 0.5rem;
  box-sizing: border-box;
  color: white;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.oc8-field--checkbox label {
  align-items: flex-start;
  display: flex;
  font-size: 0.8125rem;
  font-weight: 400;
  gap: 0.5rem;
}

.oc8-field--checkbox input {
  margin-top: 0.2rem;
}

.oc8-primary-button {
  background: oklch(0.65 0.2 285);
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1rem;
  width: 100%;
}

.oc8-primary-button:hover {
  background: oklch(0.7 0.2 285);
}

.oc8-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oc8-form-error,
.oc8-field-error {
  color: oklch(0.7 0.2 25);
  font-size: 0.8125rem;
  margin: 0 0 0.75rem;
}

.oc8-field-error {
  margin: 0.25rem 0 0;
}

/* Sign-up "Hosting location" step (region-picker.js): a light map panel in
   the dark card, light grey land, one marker and label card per region, the
   chosen one highlighted. */
.oc8-region {
  margin-bottom: 1.5rem;
}

.oc8-region-map {
  aspect-ratio: 2 / 1;
  background: oklch(0.97 0.005 270);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.oc8-region-map__land {
  display: block;
  height: 100%;
  width: 100%;
}

.oc8-region-marker {
  background: none;
  border: 0;
  cursor: pointer;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  padding: 0;
  position: absolute;
  width: 1.5rem;
}

.oc8-region-marker:disabled {
  cursor: default;
}

.oc8-region-marker__dot {
  background: oklch(0.78 0.01 270);
  border: 2px solid white;
  border-radius: 999px;
  height: 0.75rem;
  left: 0.375rem;
  position: absolute;
  top: 0.375rem;
  width: 0.75rem;
}

.oc8-region-marker__halo {
  background: radial-gradient(
    circle,
    oklch(0.65 0.2 285 / 0.45) 0%,
    oklch(0.65 0.2 285 / 0.18) 45%,
    transparent 70%
  );
  border-radius: 999px;
  height: 4.5rem;
  left: -1.5rem;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: -1.5rem;
  transition: opacity 200ms ease;
  width: 4.5rem;
}

.oc8-region-marker.is-selected .oc8-region-marker__halo {
  opacity: 1;
}

.oc8-region-marker.is-selected .oc8-region-marker__dot {
  background: oklch(0.42 0.12 300);
}

.oc8-region-marker.is-soon .oc8-region-marker__dot {
  background: oklch(0.9 0.005 270);
  border-style: dashed;
  border-color: oklch(0.75 0.01 270);
}

.oc8-region-card {
  background: white;
  border: 1px solid oklch(0.85 0.01 270);
  border-radius: 0.375rem;
  color: oklch(0.3 0.02 270);
  display: flex;
  flex-direction: column;
  font-size: 0.6875rem;
  line-height: 1.3;
  left: 50%;
  padding: 0.2rem 0.45rem;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Europe's card sits right of its marker (above it there is no room), the
   others below theirs, shifted inwards so they stay inside the map. */
.oc8-region-marker--eu .oc8-region-card {
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
}

.oc8-region-marker--us .oc8-region-card,
.oc8-region-marker--ap .oc8-region-card {
  top: 1.35rem;
}

.oc8-region-marker--us .oc8-region-card {
  transform: translateX(-30%);
}

.oc8-region-marker--ap .oc8-region-card {
  transform: translateX(-70%);
}

.oc8-region-marker.is-selected .oc8-region-card {
  border-color: oklch(0.42 0.12 300);
  box-shadow: 0 0 0 1px oklch(0.42 0.12 300);
}

.oc8-region-marker.is-soon .oc8-region-card {
  color: oklch(0.55 0.01 270);
}

.oc8-region-card__badge {
  color: oklch(0.45 0.16 290);
  font-weight: 600;
}

/* Too narrow for the cards: the radio list below says the same. */
@media (max-width: 30rem) {
  .oc8-region-card {
    display: none;
  }
}

.oc8-region-list {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
}

.oc8-region-list legend,
.oc8-visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.oc8-region-option {
  align-items: center;
  display: flex;
  font-size: 0.8125rem;
  gap: 0.5rem;
}

.oc8-region-option:has(input:disabled) {
  color: oklch(0.6 0.02 270);
}

.oc8-region-footer {
  margin-top: 0.5rem;
}

.oc8-region-restart {
  background: none;
  border: 0;
  color: oklch(0.75 0.15 220);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0;
}

.oc8-region-restart:disabled {
  cursor: progress;
  opacity: 0.6;
}

.oc8-region-note {
  color: oklch(0.75 0.02 270);
  font-size: 0.8125rem;
  margin: 0.5rem 0 0;
}

/* Billing page (templates/billing.html): one card per upgrade offer. */
.oc8-billing-offers {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.oc8-billing-offers li {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

/* The footer's "Deutsch · English" switch (lang-switch.js): small, below
   the frame, in the station's own bottom padding. */
.oc8-lang-switch {
  bottom: 0.75rem;
  color: oklch(1 0 0 / 0.55);
  font-size: 0.8125rem;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  z-index: 1;
}

.oc8-lang-switch button {
  background: none;
  border: 0;
  color: oklch(0.75 0.15 220);
  cursor: pointer;
  font: inherit;
  padding: 0.25rem;
  text-decoration: underline;
}

.oc8-lang-switch button[aria-current="true"] {
  color: inherit;
  cursor: default;
  text-decoration: none;
}
