

:root {
  /* Form side */
  --ground: #F6F8FB;
  --ink: #111A2B;
  --muted: #546074;
  --field-bg: #FFFFFF;
  --field-border: #8892A2;
  --placeholder: #66707F;

  /* Actions and states */
  --accent: #1F4E96;
  --focus: #4F79AE;
  --error: #A3261D;

  /* Brand stage (left side) */
  --stage-bg: #000000;
  --stage-text: #EEF1F6;
  --stage-muted: #D6DEEB;

  /* Type and shape */
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
}


/* Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
}

[hidden] {
  display: none !important;
}


/* Page layout: stage and form sit side by side, and stack on narrow screens
   ========================================================================== */

.page {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100svh;
}

.stage {
  flex: 1.3 1 480px;
}

.panel {
  flex: 1 1 440px;
}


/* Brand stage
   ========================================================================== */

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 4vw, 56px);
  color: var(--stage-text);
  background: var(--stage-bg);
}

.stage__video {
  position: absolute;
  top: 4%;
  right: 0;
  bottom: 27%;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.stage__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.stage__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage__title {
  margin: 0;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.stage__note {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--stage-muted);
}


/* Form panel
   ========================================================================== */

.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 72px);
}

.login {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
}

.login__title {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.login__intro {
  margin: 10px 0 32px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.login__help {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.login__error {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--error);
}


/* Fields
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field + .field {
  margin-top: 20px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}

.field__input::placeholder {
  color: var(--placeholder);
}

.field__input--with-action {
  padding-right: 76px;
}

.field__input[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--error);
}

/* Show / Hide button inside the password field */
.field__action {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 56px;
  height: 48px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.field__action:hover {
  color: var(--ink);
}


/* Checkbox
   ========================================================================== */

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 15px;
  cursor: pointer;
}

.check__box {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}


/* Button
   ========================================================================== */

.btn {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(0.88);
}

.btn:disabled {
  opacity: 0.72;
  cursor: default;
}


/* Keyboard focus (one rule for every control)
   ========================================================================== */

.field__input:focus-visible,
.field__action:focus-visible,
.check__box:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}


/* Narrow screens: the stage becomes a short band above the form
   ========================================================================== */

@media (max-width: 919px) {
  .stage {
    min-height: 320px;
  }

  .stage__copy {
    display: none;
  }

  .stage__video {
    top: 0;
    bottom: 0;
  }
}


/* Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}