:root {
    --rcc-navy: #1f4566;
    --rcc-navy-deep: #163450;
    --rcc-blue: #2f6ca3;
    --rcc-blue-link: #2f6ca3;
    --rcc-orange: #f5a04a;
    --rcc-orange-bright: #f7a73f;
    --rcc-orange-hover: #ec9234;
    --rcc-text: #2c3742;
    --rcc-placeholder: #9aa3ab;
    --rcc-border: #d9dde1;
    --rcc-white: #ffffff;
    --rcc-overlay: rgba(28, 64, 96, 0.82);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { -webkit-text-size-adjust: 100%; }

  body {
    font-family: 'Nunito Sans', system-ui, sans-serif;
    color: var(--rcc-text);
    background: var(--rcc-white);
    min-height: 100vh;
    line-height: 1.5;
  }

  .page {
    display: grid;
    grid-template-columns: minmax(400px, 0.78fr) 1.22fr;
    min-height: 100vh;
  }

  /* ---------- LEFT / FORM PANEL ---------- */
  .panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(40px, 4.5vw, 64px);
    background: var(--rcc-white);
  }

  .form-inner {
    width: 100%;
    max-width: 400px;
  }

  .logo {
    margin-bottom: 22px;
  }

  .logo-img {
    width: 230px;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .tagline {
    font-style: italic;
    font-size: 14px;
    color: #8a9299;
    line-height: 1.5;
    max-width: 340px;
    margin-bottom: 56px;
  }

  .form-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: var(--rcc-blue);
    margin-bottom: 22px;
  }

  .field { margin-bottom: 16px; }

  .field input {
    width: 100%;
    border: 1.5px solid var(--rcc-border);
    border-radius: 999px;
    padding: 16px 24px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: var(--rcc-text);
    background: var(--rcc-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .field input::placeholder { color: var(--rcc-placeholder); }

  .field input:focus {
    outline: none;
    border-color: var(--rcc-blue);
    box-shadow: 0 0 0 3px rgba(47, 108, 163, 0.12);
  }

  .field.has-error input {
    border-color: #d64545;
  }
  .field.has-error input:focus {
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15);
  }

  .field-error {
    display: none;
    margin: 6px 0 0 24px;
    font-size: 13px;
    font-weight: 600;
    color: #d64545;
  }
  .field.has-error .field-error {
    display: block;
  }

  .btn-create {
    margin-top: 12px;
    border: none;
    cursor: pointer;
    background: var(--rcc-orange-bright);
    color: var(--rcc-white);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    padding: 16px 38px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  }

  .btn-create:hover {
    background: var(--rcc-orange-hover);
    box-shadow: 0 8px 20px rgba(245, 160, 74, 0.35);
  }
  .btn-create:active { transform: translateY(1px); }

  /* ---------- RIGHT / HERO PANEL ---------- */
  .panel-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--rcc-white);
    isolation: isolate;
  }

  /* Photographic mountain + rail background */
  .hero-scene {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: #1c3e60;
    background-image: url("../images/trial_bg.png");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
  }

  /* gradient wash to deepen contrast and keep text legible */
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(28,62,96,0.35) 0%, rgba(20,48,74,0.45) 55%, rgba(15,36,56,0.6) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 1;
    padding: 70px clamp(48px, 4.5vw, 72px);
    max-width: 720px;
  }

  .hero-headline {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 1px;
    font-size: clamp(54px, 7.5vw, 124px);
    margin-bottom: 48px;
  }

  .hero-headline .stop,
  .hero-headline .guessing { color: var(--rcc-orange-bright); display: block; }
  .hero-headline .start,
  .hero-headline .negotiating { color: var(--rcc-white); display: block; }

  .hero-sub {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(18px, 1.65vw, 23px);
    line-height: 1.4;
    max-width: 560px;
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 980px) {
    .page { grid-template-columns: 1fr; }

    /* Hero now sizes to its content instead of forcing empty viewport height */
    .panel-hero {
      order: -1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: stretch;
    }

    /* Both panels: identical horizontal padding, no extra inner padding,
       so content shares one consistent left edge down the page */
    .panel-hero,
    .panel-form {
      padding-left: clamp(24px, 6vw, 56px);
      padding-right: clamp(24px, 6vw, 56px);
    }

    .hero-content,
    .form-inner {
      width: 100%;
      max-width: 560px;
      margin: 0 auto;
      padding-left: 0;
      padding-right: 0;
    }

    /* Equal breathing room above and below the headline block */
    .panel-hero { padding-top: 72px; padding-bottom: 72px; }
    .hero-content { padding: 0; }

    .panel-form { padding-top: 48px; padding-bottom: 64px; }

    .tagline { margin-bottom: 36px; max-width: none; }
  }

  @media (max-width: 560px) {
    .hero-headline { font-size: clamp(44px, 15vw, 68px); margin-bottom: 24px; }
    .hero-sub { font-size: 16px; }

    .logo-img { width: 190px; }
    .field input { padding: 14px 20px; font-size: 16px; }
    .btn-create { width: 100%; }
  }