/*
 * KOSMOS-SOURCE-OWNERSHIP
 * KOSMOS-KDF ERP - KOSMOS-KDF ERP
 * Copyright (c) 2024-2026 Stéphane Lebon (SL), alias Nuagedan100.
 * Fondateur, créateur, développeur et propriétaire actuel du code source original.
 * Version du composant : 6.1.16 | Famille de release : Centre 4.7.5 | ERP 6.1.16 | Site 4.5.53.
 * Tous droits réservés. Toute cession ou licence requiert un accord écrit et signé.
 * Les composants tiers éventuels demeurent soumis à leurs licences propres.
 */
:root{--auth-navy:#071a3c;--auth-blue:#1769f5;--auth-blue2:#0d4ed8;--auth-text:#172033;--auth-muted:#708099;--auth-line:#dfe7f2;--auth-bg:#eef3fa;--auth-danger:#b42318;--auth-success:#087a55}
*{box-sizing:border-box}
html,body{min-height:100%}
body.kosmos-auth-page{margin:0;padding:28px;display:grid;place-items:center;background:radial-gradient(circle at 10% 10%,rgba(23,105,245,.16),transparent 28%),linear-gradient(135deg,#061a3d,#123d82);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--auth-text)}
.auth-shell{width:min(100%,1040px);min-height:610px;display:grid;grid-template-columns:minmax(320px,.86fr) minmax(420px,1.14fr);overflow:hidden;border:1px solid rgba(255,255,255,.6);border-radius:30px;background:#fff;box-shadow:0 32px 90px rgba(1,17,48,.3)}
.auth-brand{padding:56px 48px;display:flex;flex-direction:column;justify-content:space-between;gap:42px;background:linear-gradient(145deg,#f7faff,#fff);border-right:1px solid var(--auth-line)}
.auth-logo-card{width:100%;min-height:175px;padding:26px;display:flex;align-items:center;justify-content:center;border:1px solid #e8eef7;border-radius:24px;background:#fff;box-shadow:0 18px 45px rgba(32,63,115,.08)}
.auth-logo-card img{display:block;width:min(100%,440px);height:auto;max-height:130px;object-fit:contain}
.auth-brand-copy h1{margin:0 0 14px;font-size:34px;line-height:1.05;letter-spacing:-.035em}.auth-brand-copy p{margin:0;color:var(--auth-muted);font-size:16px;line-height:1.65}.auth-security-list{display:grid;gap:12px}.auth-security-item{display:flex;align-items:center;gap:11px;color:#40516b;font-size:13px;font-weight:700}.auth-security-item i{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:var(--auth-blue)}
.auth-panel{padding:62px 68px;display:flex;flex-direction:column;justify-content:center;min-width:0}.auth-kicker{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-bottom:16px;padding:7px 11px;border-radius:999px;background:#edf4ff;color:#2358ca;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.auth-panel h2{margin:0 0 10px;font-size:32px;line-height:1.1;letter-spacing:-.035em}.auth-intro{margin:0 0 30px;color:var(--auth-muted);font-size:15px;line-height:1.6}.auth-alert{margin:0 0 22px;padding:14px 16px;display:flex;align-items:flex-start;gap:11px;border-radius:14px;font-size:13px;line-height:1.5}.auth-alert.error{border:1px solid #fecaca;background:#fff1f2;color:var(--auth-danger)}.auth-alert.success{border:1px solid #a7f3d0;background:#ecfdf5;color:var(--auth-success)}.auth-alert.info{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}.auth-form{display:grid;gap:19px}.auth-field{display:grid;gap:8px}.auth-field label{color:#34445e;font-size:12px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}.auth-input-wrap{position:relative}.auth-input-wrap>i{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#8290a6}.auth-field input{width:100%;height:54px;padding:0 48px 0 46px;border:1px solid var(--auth-line);border-radius:15px;background:#fbfcfe;color:var(--auth-text);font:inherit;font-size:15px;outline:none;transition:border-color .15s,box-shadow .15s,background .15s}.auth-field input:focus{border-color:#7aa5ff;background:#fff;box-shadow:0 0 0 4px rgba(23,105,245,.12)}.auth-password-toggle{position:absolute;right:8px;top:7px;width:40px;height:40px;border:0;border-radius:11px;background:transparent;color:#6b7b93;cursor:pointer}.auth-password-toggle:hover{background:#edf4ff;color:var(--auth-blue)}.auth-help{color:#7b889c;font-size:12px;line-height:1.5}.auth-policy{margin:0;padding:14px 16px;border:1px solid #e4eaf3;border-radius:14px;background:#f8fafc;color:#5e6d84;font-size:12px;line-height:1.65}.auth-policy strong{color:#2d3b51}.auth-submit{height:54px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--auth-blue),var(--auth-blue2));color:#fff;font:inherit;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 15px 28px rgba(23,105,245,.2);transition:transform .15s,box-shadow .15s}.auth-submit:hover{transform:translateY(-1px);box-shadow:0 19px 32px rgba(23,105,245,.25)}.auth-submit:disabled{opacity:.55;cursor:not-allowed;transform:none}.auth-actions{margin-top:23px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.auth-link{display:inline-flex;align-items:center;gap:8px;color:#285dcc;font-size:13px;font-weight:800;text-decoration:none}.auth-link:hover{text-decoration:underline}.auth-footer{margin-top:30px;padding-top:18px;border-top:1px solid #edf1f6;color:#8a96a8;font-size:11px;line-height:1.5}.auth-expired{padding:22px;border:1px solid #fecaca;border-radius:18px;background:#fff7f7;text-align:center}.auth-expired i{width:52px;height:52px;margin:0 auto 13px;display:grid;place-items:center;border-radius:16px;background:#fee2e2;color:#b42318;font-size:21px}.auth-expired h3{margin:0 0 8px}.auth-expired p{margin:0 0 18px;color:#6f7c90;line-height:1.55}
@media(max-width:820px){body.kosmos-auth-page{padding:14px;align-items:start}.auth-shell{grid-template-columns:1fr;min-height:0}.auth-brand{padding:28px;border-right:0;border-bottom:1px solid var(--auth-line);gap:22px}.auth-logo-card{min-height:120px;padding:18px}.auth-logo-card img{max-height:90px}.auth-brand-copy h1{font-size:27px}.auth-security-list{display:none}.auth-panel{padding:38px 28px}.auth-panel h2{font-size:28px}}
@media(max-width:480px){body.kosmos-auth-page{padding:7px}.auth-shell{border-radius:21px}.auth-brand{padding:20px}.auth-logo-card{min-height:95px;border-radius:17px}.auth-logo-card img{max-height:70px}.auth-brand-copy{display:none}.auth-panel{padding:30px 19px}.auth-panel h2{font-size:25px}.auth-actions{align-items:flex-start;flex-direction:column}}


/* KOSMOS 6.1.188 - Alignement pages d'authentification */
html,body{min-height:100%;}
body.kosmos-auth-page{min-height:100vh!important;margin:0!important;padding:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:radial-gradient(circle at 14% 8%,#f9fbff 0,#edf3fb 42%,#e7eef7 100%)!important;}
body.kosmos-auth-page .auth-shell{width:min(1080px,100%)!important;min-height:640px!important;margin:auto!important;grid-template-columns:minmax(350px,.92fr) minmax(450px,1.08fr)!important;border:1px solid rgba(207,220,239,.94)!important;border-radius:30px!important;box-shadow:0 30px 90px rgba(31,48,79,.17)!important;overflow:hidden!important;background:#fff!important;}
body.kosmos-auth-page .auth-brand{position:relative!important;padding:46px 42px!important;background:linear-gradient(155deg,#142a50 0%,#1c3d78 55%,#2d69db 118%)!important;border:0!important;color:#fff!important;justify-content:space-between!important;gap:28px!important;overflow:hidden!important;}
body.kosmos-auth-page .auth-brand:before,body.kosmos-auth-page .auth-brand:after{content:"";position:absolute;border-radius:50%;pointer-events:none}body.kosmos-auth-page .auth-brand:before{width:250px;height:250px;right:-90px;top:-80px;background:rgba(135,167,255,.17)}body.kosmos-auth-page .auth-brand:after{width:230px;height:230px;left:-100px;bottom:-90px;background:rgba(55,210,170,.10)}
body.kosmos-auth-page .auth-logo-card{position:relative;z-index:1;width:min(330px,100%)!important;min-height:140px!important;margin:0 auto!important;padding:22px 26px!important;border-radius:22px!important;background:#fff!important;border:1px solid rgba(255,255,255,.78)!important;box-shadow:0 20px 48px rgba(7,24,57,.22)!important}body.kosmos-auth-page .auth-logo-card img{max-width:100%!important;max-height:108px!important;object-fit:contain!important}
body.kosmos-auth-page .auth-brand-copy,body.kosmos-auth-page .auth-security-list{position:relative;z-index:1}body.kosmos-auth-page .auth-brand-copy h1{color:#fff!important;font-size:29px!important}body.kosmos-auth-page .auth-brand-copy p{color:rgba(238,245,255,.74)!important;font-size:14px!important}body.kosmos-auth-page .auth-security-item{color:rgba(245,249,255,.88)!important}body.kosmos-auth-page .auth-security-item i{background:rgba(255,255,255,.10)!important;color:#a9c2ff!important}
body.kosmos-auth-page .auth-panel{padding:56px 60px!important;background:#fff!important;justify-content:center!important}body.kosmos-auth-page .auth-panel h2{font-size:32px!important;color:#17243d!important}.auth-kicker{background:#f1f5ff!important;color:#3a62c7!important}.auth-footer{margin-top:24px!important}
@media(max-width:860px){body.kosmos-auth-page{padding:14px!important;align-items:flex-start!important}.auth-shell{grid-template-columns:1fr!important;min-height:0!important}.auth-brand{min-height:280px!important;padding:28px!important}.auth-brand-copy h1{font-size:25px!important}.auth-security-list{display:none!important}.auth-panel{padding:38px 28px!important}}
@media(max-width:520px){body.kosmos-auth-page{padding:0!important;background:#fff!important}.auth-shell{min-height:100vh!important;border:0!important;border-radius:0!important}.auth-brand{min-height:220px!important;padding:22px!important}.auth-logo-card{min-height:96px!important;width:min(280px,92%)!important}.auth-logo-card img{max-height:70px!important}.auth-brand-copy{display:none!important}.auth-panel{padding:30px 19px 48px!important}}


/* KOSMOS 6.1.189 - gabarit auth unifie */
body.kosmos-auth-page{min-height:100dvh!important;padding:24px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
body.kosmos-auth-page .auth-shell{width:min(1120px,100%)!important;min-height:690px!important;grid-template-columns:minmax(350px,.92fr) minmax(460px,1.08fr)!important;}
body.kosmos-auth-page .auth-brand{min-height:690px!important;padding:42px 42px 34px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;text-align:center!important;}
body.kosmos-auth-page .auth-logo-card{width:min(330px,92%)!important;min-height:140px!important;height:140px!important;padding:18px 24px!important;display:grid!important;place-items:center!important;margin:0 auto!important;}
body.kosmos-auth-page .auth-logo-card img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:104px!important;margin:auto!important;object-fit:contain!important;object-position:center center!important;}
body.kosmos-auth-page .auth-brand-copy{width:min(360px,94%)!important;margin:auto 0!important;text-align:center!important;}
body.kosmos-auth-page .auth-security-list{width:min(390px,96%)!important;text-align:left!important;}
body.kosmos-auth-page .auth-panel{min-height:690px!important;padding:48px 54px 66px!important;}
@media(max-width:900px){body.kosmos-auth-page{padding:14px!important;align-items:flex-start!important}body.kosmos-auth-page .auth-shell{grid-template-columns:1fr!important;min-height:0!important}body.kosmos-auth-page .auth-brand{min-height:310px!important;padding:30px 24px!important}body.kosmos-auth-page .auth-panel{min-height:0!important;padding:38px 28px 54px!important}}
@media(max-width:560px){body.kosmos-auth-page{padding:0!important}body.kosmos-auth-page .auth-shell{min-height:100dvh!important;border:0!important;border-radius:0!important}body.kosmos-auth-page .auth-brand{min-height:250px!important;padding:22px 16px!important}body.kosmos-auth-page .auth-logo-card{width:min(280px,92%)!important;height:100px!important;min-height:100px!important}body.kosmos-auth-page .auth-logo-card img{max-height:72px!important}body.kosmos-auth-page .auth-panel{padding:30px 18px 48px!important}}
