@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --wotget-orange: #e86a2c;
  --wotget-orange-hover: #d45a22;
  --wotget-orange-light: #fff4ee;
  --wotget-warm-white: #fdf9f6;
  --wotget-white: #ffffff;
  --wotget-text: #1a1a1a;
  --wotget-text-secondary: #4b5563;
  --wotget-text-muted: #9ca3af;
  --wotget-border: #e5e7eb;
  --wotget-border-focus: #e86a2c;
  --wotget-error: #dc2626;
  --wotget-font: 'Inter', system-ui, -apple-system, sans-serif;
  --wotget-radius-md: 10px;
  --wotget-transition: 180ms ease;
}

body.wotget-login-page {
  margin: 0;
  font-family: var(--wotget-font);
  color: var(--wotget-text);
  background: var(--wotget-white);
}

body.wotget-login-page #page,
body.wotget-login-page .site-content,
body.wotget-login-page .ast-container {
  max-width: none;
  padding: 0;
  margin: 0;
}

.wotget-login {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 100vh;
  overflow: hidden;
}

.wotget-login__brand {
  position: relative;
  background-color: var(--wotget-warm-white);
  background-image: url('../images/login-brand-wireframe.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  overflow: hidden;
}

.wotget-login__brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2.5rem 3rem 5.5rem;
  box-sizing: border-box;
}

.wotget-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.wotget-login__logo {
  flex-shrink: 0;
}

.wotget-login__logo .wotget-logo {
  max-width: min(100%, 17.5rem);
  max-height: 5rem;
}

/* Headline + slogan optically centered; logo stays top-left */
.wotget-login__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.875rem;
  max-width: 36rem;
  width: 100%;
  padding: 2rem 0;
  text-align: left;
}

.wotget-login__headline {
  margin: 0;
  /* Calm B2B — not a dominant hero. Single line on desktop via clamp + nowrap. */
  font-size: clamp(1.65rem, 1.32rem + 1.32vw, 2.4rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--wotget-text);
  white-space: nowrap;
}

.wotget-login__headline-accent {
  color: var(--wotget-orange);
  font-weight: 600;
}

.wotget-login__rotating {
  margin: 0;
  min-height: 1.65rem;
  font-size: clamp(0.9625rem, 0.88rem + 0.385vw, 1.1rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--wotget-text-secondary);
  white-space: nowrap;
  transition: opacity 400ms ease;
}

.wotget-login__values {
  position: absolute;
  left: 3rem;
  right: 3rem;
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.wotget-login__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
}

.wotget-login__value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wotget-text);
}

.wotget-login__value-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wotget-text-secondary);
}

.wotget-login__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem 4.5rem;
  background: var(--wotget-white);
}

.wotget-login__panel-inner {
  width: 100%;
  max-width: 450px;
}

.wotget-login__stage {
  position: relative;
  width: 100%;
  min-height: 22rem;
}

.wotget-login__layer {
  width: 100%;
  transition: opacity 280ms ease, transform 280ms ease;
}

.wotget-login__layer--visible {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.wotget-login__layer--hidden {
  opacity: 0;
  transform: translateX(1rem);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.wotget-login__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wotget-login__subtitle {
  margin: 0.75rem 0 0;
  max-width: 20rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--wotget-text-secondary);
}

.wotget-login__welcome-btn {
  width: 100%;
  margin-top: 2.5rem;
  min-height: 3rem;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
}

.wotget-login__sign-in-title {
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wotget-login__alert {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--wotget-radius-md);
  background: #fef2f2;
  color: var(--wotget-error);
  font-size: 0.875rem;
}

.wotget-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wotget-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wotget-login__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.wotget-login__input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.875rem;
  border: 1px solid var(--wotget-border);
  border-radius: var(--wotget-radius-md);
  background: var(--wotget-white);
  color: var(--wotget-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--wotget-transition), box-shadow var(--wotget-transition);
}

.wotget-login__input::placeholder {
  color: var(--wotget-text-muted);
}

.wotget-login__input:focus {
  outline: none;
  border-color: var(--wotget-border-focus);
  box-shadow: 0 0 0 3px rgba(232, 106, 44, 0.12);
}

.wotget-login__input--error {
  border-color: var(--wotget-error);
}

.wotget-login__field-error {
  font-size: 0.8125rem;
  color: var(--wotget-error);
}

.wotget-login__form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wotget-login__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wotget-text-secondary);
  cursor: pointer;
}

.wotget-login__checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--wotget-orange);
}

.wotget-login__link {
  color: var(--wotget-orange);
  text-decoration: none;
  font-size: 0.875rem;
}

.wotget-login__link:hover {
  color: var(--wotget-orange-hover);
  text-decoration: underline;
}

.wotget-login__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 1.25rem;
  border: none;
  border-radius: var(--wotget-radius-md);
  background: var(--wotget-orange);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--wotget-transition), transform var(--wotget-transition);
}

.wotget-login__button:hover:not(:disabled) {
  background: var(--wotget-orange-hover);
}

.wotget-login__button:active:not(:disabled) {
  transform: translateY(1px);
}

.wotget-login__button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.wotget-login__footer {
  position: fixed;
  left: 55%;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  color: var(--wotget-text-muted);
  background: rgba(255, 255, 255, 0.92);
}

.wotget-login__footer-links {
  display: inline-flex;
  gap: 1rem;
}

@media (max-width: 960px) {
  .wotget-login {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .wotget-login__brand-inner {
    min-height: auto;
    padding: 2rem 1.5rem 2.5rem;
  }

  .wotget-login__hero {
    flex: 0 0 auto;
    padding: 1.75rem 0 0.5rem;
    max-width: 100%;
  }

  .wotget-login__headline,
  .wotget-login__rotating {
    white-space: normal; /* mobile / stacked layout may wrap */
  }

  .wotget-login__values {
    position: static;
    margin-top: 2.5rem;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wotget-login__footer {
    left: 0;
  }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .wotget-login__headline {
    font-size: clamp(1.5rem, 1.2rem + 1.08vw, 2.1rem);
  }

  .wotget-login__hero {
    max-width: 32rem;
  }
}
