/* invoRiva — templates/auth/login.html : styles propres à cette page (sortis du gabarit, 02/11/2026). */
    *, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
    :root {
      --navy: #0d1b4b;
      --blue: #1563ee;
      --blue-hv: #1250cc;
      --ink: #1a2340;
      --mid: #8892a4;
      --lt: #c6ccda;
      --border: #dde3f0;
      --bg: #ebeff8;
      --white: #ffffff;
      --font: 'DM Sans', system-ui, sans-serif;
      --radius: 28px;
      --r-input: 12px;
    }
    body {
      font-family: var(--font); color: var(--ink); background: var(--bg);
      min-height: 100vh; display: flex; align-items: center; justify-content: center;
      position: relative; overflow-x: hidden;
      background: radial-gradient(ellipse 140% 120% at 60% -10%, #c9d6f5 0%, #ebeff8 45%, #eceef6 100%);
    }
    /* Geometric decorative shapes */
    .geo { position: fixed; pointer-events: none; z-index: 0; }
    .geo-tr {
      top: -60px; right: -60px; width: 520px; height: 520px;
      background: linear-gradient(145deg, #1563ee 0%, #1e3fcc 40%, #0a2a9c 100%);
      clip-path: polygon(55% 0%, 100% 0%, 100% 45%, 75% 100%, 30% 60%);
      opacity: .88;
    }
    .geo-tr2 {
      top: 60px; right: 0; width: 260px; height: 260px;
      background: linear-gradient(160deg, #3d7ff6 0%, #1563ee 100%);
      clip-path: polygon(100% 0%, 100% 100%, 10% 50%);
      opacity: .55;
    }
    .geo-bl {
      bottom: -80px; right: 80px; width: 420px; height: 380px;
      background: linear-gradient(135deg, #1250cc 0%, #0d1b9e 100%);
      clip-path: polygon(0% 100%, 100% 100%, 75% 0%, 20% 40%);
      opacity: .7;
    }
    .geo-bm {
      bottom: 0; left: 40%; width: 320px; height: 280px;
      background: linear-gradient(125deg, #2060ee 0%, #1563ee 60%, #0e44cc 100%);
      clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
      opacity: .22;
    }
    /* Card */
    .login-wrap {
      position: relative; z-index: 1;
      width: 100%; max-width: 460px; margin: 1.5rem;
      background: var(--white); border-radius: var(--radius);
      padding: 1.9rem 2.4rem 1.7rem;
      box-shadow: 0 4px 12px rgba(13,27,75,.06), 0 24px 64px -20px rgba(13,27,75,.22);
    }
    /* Brand */
    .brand { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin-bottom: 1rem; }
    .brand-img { display: block; line-height: 0; }
    .brand-img img { height: 49px; width: auto; max-width: 100%; }
    .brand-name {
      font-family: var(--font); font-size: 1.4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em;
    }
    .brand-name .invo { color: var(--navy); }
    .brand-name .riva { color: var(--blue); }
    .brand-sub { font-size: .8rem; color: var(--mid); font-weight: 500; letter-spacing: .01em; }
    /* Heading */
    .login-title { font-size: 1.32rem; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: .35rem; letter-spacing: -.02em; }
    .login-sub   { font-size: .88rem; color: var(--mid); text-align: center; margin-bottom: 1.15rem; }
    /* Alerts */
    .f-alert { display: flex; align-items: flex-start; gap: .5rem; padding: .8rem 1rem; border-radius: 11px;
               background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font-size: .84rem; margin-bottom: .85rem; }
    .f-alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    /* Fields */
    .f-group { margin-bottom: .85rem; }
    .f-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .45rem; }
    .f-label { font-size: .84rem; font-weight: 600; color: var(--ink); }
    .f-forgot { font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; }
    .f-forgot:hover { text-decoration: underline; }
    .f-inaccessible { margin: 1rem 0 0; text-align: center; }
    .f-poste { align-items: flex-start; line-height: 1.5; }
    .f-rejoindre { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px;
                   border: 1.5px dashed #b9c8ec; background: #f8faff; color: var(--ink); text-decoration: none; }
    .f-rejoindre:hover { border-color: var(--blue); background: #f1f6ff; }
    .f-rejoindre > i:first-child { font-size: 1.3rem; color: var(--blue); }
    .f-rejoindre strong { display: block; font-size: .9rem; color: var(--navy); }
    .f-rejoindre small { display: block; font-size: .77rem; color: var(--mid); margin-top: .1rem; line-height: 1.4; }
    .f-rejoindre-fleche { margin-inline-start: auto; color: var(--blue); }
    html[dir=rtl] .f-rejoindre-fleche { transform: scaleX(-1); }
    .f-input-wrap { position: relative; }
    .f-input {
      width: 100%; padding: .72rem 2.7rem .72rem 1rem;
      background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-input);
      font-family: var(--font); font-size: .95rem; color: var(--ink);
      transition: border-color .15s, box-shadow .15s;
    }
    .f-input::placeholder { color: var(--lt); }
    .f-input:hover  { border-color: #b4bfe0; }
    .f-input:focus  { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,99,238,.14); }
    .f-input.invalid { border-color: #f43f5e !important; }
    .f-icon {
      position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
      color: var(--lt); font-size: 1rem; pointer-events: none;
    }
    .f-toggle-eye {
      position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
      background: none; border: none; color: var(--lt); cursor: pointer; padding: .25rem; font-size: 1rem; line-height: 1;
    }
    .f-toggle-eye:hover { color: var(--blue); }
    .f-error { color: #f43f5e; font-size: .78rem; margin-top: .35rem; display: flex; align-items: center; gap: .3rem; }
    /* Remember */
    .f-check-row { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.05rem; }
    .f-check-row input[type="checkbox"] {
      width: 17px; height: 17px; border-radius: 5px; accent-color: var(--blue); cursor: pointer;
    }
    .f-check-row label { font-size: .87rem; color: var(--ink-mid, #4a5568); cursor: pointer; }
    /* Submit */
    .btn-login {
      width: 100%; padding: .78rem; font-family: var(--font); font-size: .97rem; font-weight: 700; color: #fff;
      background: var(--blue); border: none; border-radius: var(--r-input); cursor: pointer; letter-spacing: .01em;
      box-shadow: 0 8px 24px -8px rgba(21,99,238,.55);
      transition: background .15s, transform .12s, box-shadow .15s;
    }
    .btn-login:hover { background: var(--blue-hv); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(21,99,238,.65); }
    .btn-login:active { transform: translateY(0); }
    /* Divider */
    .divider { display: flex; align-items: center; gap: .75rem; margin: .95rem 0; }
    .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .divider span { font-size: .82rem; color: var(--mid); font-weight: 500; white-space: nowrap; }
    /* Google btn */
    .btn-google {
      width: 100%; padding: .72rem; font-family: var(--font); font-size: .92rem; font-weight: 600;
      color: var(--ink); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-input); cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: .6rem;
      transition: border-color .15s, box-shadow .15s;
    }
    .btn-google:hover { border-color: #b4bfe0; box-shadow: 0 2px 8px rgba(13,27,75,.08); }
    /* Footer link */
    .f-footer { text-align: center; margin-top: 1rem; font-size: .87rem; color: var(--mid); }
    .f-footer a { color: var(--blue); font-weight: 600; text-decoration: none; }
    .f-footer a:hover { text-decoration: underline; }
    /* Responsive */
    @media (max-width: 500px) {
      .login-wrap { padding: 1.5rem 1.3rem 1.3rem; margin: 1rem; border-radius: 20px; }
      .geo-bl, .geo-bm, .geo-tr2 { display: none; }
    }

