:root {
    --mi-navy: #1F262F;
    --mi-white: #FFFFFF;
    --mi-white-blue: #F7F9FD;
    --mi-light-blue: #E1E7F0;
    --mi-blue: #313A45;
    --mi-leaf-green: #8DC63F;
    --mi-grey: #8A95A4;
    --mi-red: #d64545;
    --mi-shadow: 0 4px 14px rgba(0,0,0,0.06);
    --mi-shadow-deep: 0 18px 50px rgba(31,38,47,0.18);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    font-family: 'Titillium Web', -apple-system, system-ui, sans-serif;
    color: var(--mi-blue);
    background: var(--mi-white-blue);
    line-height: 1.5;
    min-height: 100vh;
  }

  /* ====== Auth layout ====== */
  .auth-wrap {
    min-height: calc(100vh - 50px);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  @media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } }

  .auth-left {
    background: var(--mi-navy);
    color: var(--mi-white);
    padding: 56px 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  .auth-left::before {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(141,198,63,0.18) 0%, rgba(141,198,63,0) 70%);
    pointer-events: none;
  }
  .brand {
    display: flex; align-items: center; gap: 14px;
    position: relative; z-index: 1;
  }
  .brand-mark {
    width: 44px; height: 44px;
    background: var(--mi-leaf-green);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: var(--mi-navy);
    font-size: 22px;
  }
  .brand-name {
    font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  }
  .brand-name span { color: var(--mi-leaf-green); }

  .hero {
    position: relative; z-index: 1;
    max-width: 380px;
  }
  .hero h1 {
    font-size: 36px; font-weight: 900; line-height: 1.15;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 18px;
  }
  .hero h1::after {
    content: ''; display: block;
    width: 60px; height: 5px;
    background: var(--mi-leaf-green);
    border-radius: 3px;
    margin: 16px 0 0 8px;
  }
  .hero p {
    color: #C5CCD7; font-size: 15px; line-height: 1.65;
  }
  .footer-note {
    position: relative; z-index: 1;
    color: #6f7986; font-size: 12px;
    font-style: italic;
  }

  .auth-right {
    background: var(--mi-white-blue);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-card {
    background: var(--mi-white);
    border-radius: 18px;
    box-shadow: var(--mi-shadow-deep);
    padding: 40px 36px;
    width: 100%; max-width: 420px;
  }
  .auth-card h2 {
    font-size: 22px; font-weight: 900;
    color: var(--mi-navy);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 6px;
  }
  .auth-card h2::after {
    content: ''; display: block;
    width: 50px; height: 4px;
    background: var(--mi-leaf-green);
    border-radius: 2px;
    margin: 8px 0 0 6px;
  }
  .auth-card .lead {
    color: var(--mi-grey);
    font-size: 14px;
    margin: 18px 0 26px;
  }
  .field { margin-bottom: 18px; }
  .field label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--mi-navy);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 8px;
  }
  .field input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--mi-blue);
    background: var(--mi-white-blue);
    border: 1.5px solid var(--mi-light-blue);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
  }
  .field input:focus {
    outline: none;
    border-color: var(--mi-leaf-green);
    background: var(--mi-white);
  }
  .alert {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: #a13030;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex; gap: 10px; align-items: flex-start;
  }
  .alert-icon {
    flex: 0 0 18px;
    width: 18px; height: 18px;
    background: #a13030;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 12px;
  }
  .btn {
    width: 100%;
    font-family: inherit;
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    background: var(--mi-leaf-green);
    color: var(--mi-navy);
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.15s;
  }
  .btn:hover { box-shadow: 0 6px 16px rgba(141,198,63,0.35); }
  .btn:active { transform: translateY(1px); }
  .btn-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: var(--mi-grey);
    text-decoration: none;
    border-bottom: 1px dashed var(--mi-light-blue);
    padding-bottom: 1px;
  }
  .btn-link:hover { color: var(--mi-navy); border-color: var(--mi-navy); }

