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

  :root {
    --navy:    #1B2A3E;
    --deep:    #131F2E;
    --frost:   #C8D8EC;
    --mist:    #8BA4BF;
    --gold:    #C49A5A;
    --white:   #F0F4F8;
    --green:   #7ABFA0;
    --page-bg: #F4F6F9;
    --card-bg: #FFFFFF;
    --border:  #DDE3EC;
    --label:   #4A5C72;
    --input-bg:#F8FAFC;
    --success: #3A8A6A;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--deep);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 10% 20%, rgba(46,65,96,0.55) 0%, transparent 65%),
      radial-gradient(ellipse 40% 50% at 90% 70%, rgba(30,50,75,0.35) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
  }

  body::after {
    content: '';
    position: fixed; inset: 0;
    background-image:
      linear-gradient(rgba(200,216,236,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,216,236,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none; z-index: 0;
  }

  * { position: relative; z-index: 1; }

  nav {
    padding: 20px 24px;
    display: flex; align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(200,216,236,0.08);
  }

  .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 700;
    color: var(--frost); text-decoration: none;
  }
  .logo em { font-style: italic; color: var(--gold); font-weight: 600; }

  .nav-back {
    font-size: 12px; color: var(--mist);
    text-decoration: none; transition: color 0.2s;
  }
  .nav-back:hover { color: var(--frost); }

  .main {
    flex: 1; display: flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px 60px;
  }

  /* SCREENS */
  .screen { display: none; width: 100%; max-width: 400px; }
  .screen.active { display: block; animation: fadeUp 0.4s ease both; }

  .card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  }

  .card-logo {
    text-align: center; margin-bottom: 24px;
  }

  .card-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 700;
    color: var(--navy); text-decoration: none;
    display: block;
  }
  .card-logo-text em { font-style: italic; color: var(--gold); font-weight: 600; }

  .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 600;
    color: var(--navy); letter-spacing: -0.5px;
    line-height: 1.1; margin-bottom: 8px;
  }
  .card-title em { font-style: italic; font-weight: 400; }

  .card-sub {
    font-size: 13px; line-height: 1.7;
    color: var(--label); font-weight: 300;
    margin-bottom: 24px;
  }

  .field { margin-bottom: 16px; }

  label {
    display: block;
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--label); margin-bottom: 7px;
  }

  input[type="email"],
  input[type="password"] {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 300;
    color: var(--navy); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
  }

  input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,42,62,0.07);
    background: #fff;
  }

  input::placeholder { color: rgba(139,164,191,0.5); font-weight: 300; }

  .password-strength {
    margin-top: 6px;
    display: none;
  }

  .strength-bar {
    height: 3px; border-radius: 2px;
    background: var(--border);
    overflow: hidden; margin-bottom: 4px;
  }

  .strength-fill {
    height: 100%; border-radius: 2px;
    width: 0%; transition: width 0.3s, background 0.3s;
  }

  .strength-label {
    font-size: 11px; font-weight: 300; color: var(--mist);
  }

  .btn-submit {
    width: 100%; padding: 14px;
    background: var(--navy); color: var(--frost);
    border: none; border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    margin-top: 8px;
  }

  .btn-submit:hover {
    background: var(--deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27,42,62,0.2);
  }

  .btn-submit.success { background: var(--success); transform: none; box-shadow: none; }

  .form-fine {
    text-align: center; font-size: 12px;
    color: var(--mist); margin-top: 16px;
    font-weight: 300; line-height: 1.6;
  }

  .form-fine a {
    color: var(--navy); text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* SUCCESS STATE */
  .success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(122,191,160,0.12);
    border: 2px solid rgba(122,191,160,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 22px; color: var(--green);
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
