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

  body {
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    position: relative;
  }

  /* ── Panneau gauche : branding officiel ── */
  .brand-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
  }

  /* Photo ASBC en fond subtil */
  .brand-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: url('/img/ASBC.jpg') center/cover no-repeat;
    opacity: .45;
    pointer-events: none;
  }

  .brand-panel::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.4) 40%, rgba(255,255,255,.75) 100%);
    pointer-events: none;
  }

  .brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 440px;
  }

  .armoirie {
    width: 130px;
    height: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.1));
    animation: fadeScale .8s ease both;
  }

  .brand-title {
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #8A97AC;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin-bottom: 12px;
  }

  .brand-name {
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #1A1F2E;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .brand-name span {
    color: #1B9E5A;
  }

  .brand-sub {
    font-size: 14px;
    color: #6B7A8D;
    line-height: 1.7;
    margin-bottom: 36px;
  }

  .brand-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
  }

  .brand-stat {
    text-align: center;
  }

  .brand-stat-value {
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1B9E5A;
    letter-spacing: -.03em;
  }

  .brand-stat-label {
    font-size: 10px;
    color: #8A97AC;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 4px;
  }

  .brand-footer {
    position: absolute;
    bottom: 28px;
    left: 0; right: 0;
    text-align: center;
    font-size: 11px;
    color: #A0AABB;
    line-height: 1.5;
    z-index: 1;
  }

  /* ── Panneau droit : formulaire ── */
  .login-panel {
    width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 52px;
    background: #F5F7FA;
    border-left: 1px solid #E4E8EE;
    position: relative;
  }

  .login-card {
    width: 100%;
    max-width: 360px;
    animation: rise .5s ease both;
  }

  .login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
  }

  .login-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
  }

  .login-logo-text {
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #1A1F2E;
    letter-spacing: -.02em;
  }

  .login-logo-sub {
    font-size: 10px;
    color: #8A97AC;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 2px;
  }

  h1 {
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1A1F2E;
    letter-spacing: -.03em;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 13px;
    color: #8A97AC;
    margin-bottom: 32px;
    line-height: 1.5;
  }

  .field {
    margin-bottom: 20px;
  }

  label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6B7A8D;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
  }

  input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D8DEE6;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1A1F2E;
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
  }

  input:focus {
    border-color: #1B9E5A;
    box-shadow: 0 0 0 3px rgba(27,158,90,.1);
  }

  input::placeholder { color: #B8C1CC; }

  .btn-submit {
    width: 100%;
    padding: 13px;
    background: #1B9E5A;
    border: none;
    border-radius: 10px;
    font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    letter-spacing: -.01em;
    box-shadow: 0 4px 16px rgba(27,158,90,.2);
  }

  .btn-submit:hover { opacity: .92; box-shadow: 0 6px 24px rgba(27,158,90,.3); }
  .btn-submit:active { transform: scale(.98); }
  .btn-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

  .err-global {
    background: rgba(232,82,74,.06);
    border: 1px solid rgba(232,82,74,.2);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 12px;
    color: #D03E36;
    margin-bottom: 20px;
    display: none;
    line-height: 1.5;
  }

  .footer-note {
    text-align: center;
    font-size: 11px;
    color: #A0AABB;
    margin-top: 32px;
    line-height: 1.6;
  }

  .footer-note a {
    color: #6B7A8D;
    text-decoration: none;
  }

  .footer-note a:hover { color: #1A1F2E; }

  /* ── Animations ── */
  @keyframes fadeScale {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    body { flex-direction: column; }

    .brand-panel {
      min-height: auto;
      padding: 40px 24px 32px;
    }

    .armoirie { width: 90px; margin-bottom: 20px; }
    .brand-name { font-size: 22px; }
    .brand-sub { margin-bottom: 20px; font-size: 13px; }
    .brand-stats { gap: 24px; }
    .brand-stat-value { font-size: 18px; }
    .brand-footer { display: none; }

    .login-panel {
      width: 100%;
      min-height: auto;
      padding: 32px 24px 48px;
      border-left: none;
      border-top: 1px solid #E4E8EE;
    }
  }

  @media (max-width: 480px) {
    .brand-stats { flex-direction: column; gap: 16px; }
    .login-panel { padding: 28px 20px 40px; }
  }
