:root{
  --ubora-navy:#10264a;
  --ubora-blue:#1f5f9f;
  --ubora-blue-2:#2f7fc4;
  --ubora-gold:#e8b640;
  --ubora-bg:#f3f6fa;
  --ubora-text:#1a2433;
  --ubora-muted:#667085;
  --ubora-line:#dbe3ee;
  --ubora-white:#fff;
  --ubora-shadow:0 20px 60px rgba(16,38,74,.14);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body.ubora-auth-body{background:var(--ubora-bg);color:var(--ubora-text);font-family:Poppins,Arial,sans-serif}
.ubora-auth-page{min-height:100vh;min-height:100dvh}
.ubora-auth-split{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(430px,.98fr)}
.ubora-hero{
  position:relative;overflow:hidden;min-height:100vh;min-height:100dvh;
  padding:24px clamp(28px,4vw,58px);color:#fff;
  background:radial-gradient(circle at 14% 14%,rgba(255,255,255,.14),transparent 22%),radial-gradient(circle at 85% 78%,rgba(232,182,64,.16),transparent 24%),linear-gradient(145deg,#0d2345 0%,#174d82 58%,#2c78b9 100%);
  display:flex;flex-direction:column
}
.ubora-hero:after{content:"UBORA";position:absolute;right:-34px;bottom:-36px;font:900 clamp(86px,12vw,180px)/1 Nunito,sans-serif;color:rgba(255,255,255,.05)}
.ubora-hero-top,.ubora-hero-center{position:relative;z-index:1}
.ubora-overline,.ubora-portal-label{margin:0}.ubora-overline{font-size:12px;font-weight:900;letter-spacing:.18em}.ubora-portal-label{margin-top:5px;color:rgba(255,255,255,.74);font-size:13px}
.ubora-hero-center{width:min(620px,100%);margin:auto 0;padding:12px 0}
.ubora-logo-box{width:150px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:16px;padding:10px;box-shadow:0 12px 34px rgba(0,0,0,.17)}
.ubora-logo-box img{display:block;width:100%;height:auto;max-height:145px;object-fit:contain;object-position:center}
.ubora-logo-box.compact{width:92px;padding:7px;border-radius:13px;margin:0 auto 12px;box-shadow:0 10px 26px rgba(16,38,74,.12)}
.ubora-logo-box.compact img{max-height:92px}
.ubora-admission-badge{display:inline-flex;margin:15px 0 9px;padding:7px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.1);font-size:11px;font-weight:800;letter-spacing:.08em}
.ubora-hero h1{margin:0;color:#fff;font:900 clamp(40px,4.5vw,64px)/1 Nunito,sans-serif;letter-spacing:-.035em}
.ubora-hero-text{max-width:580px;margin:12px 0 0;color:rgba(255,255,255,.84);font-size:14px;line-height:1.5}
.ubora-form-side{min-height:100vh;min-height:100dvh;padding:20px 28px;display:grid;place-items:center;background:linear-gradient(180deg,#f8fafc,#eef3f8)}
.ubora-card{width:min(500px,100%);background:#fff;border:1px solid rgba(16,38,74,.09);border-radius:24px;box-shadow:var(--ubora-shadow);padding:28px 32px}
.ubora-card.wide{width:min(690px,100%);padding:24px 30px}
.ubora-card-brand{margin:0 0 7px;color:var(--ubora-blue);font-size:11px;font-weight:900;letter-spacing:.16em}
.ubora-card h1,.ubora-card h2{margin:0;color:var(--ubora-navy);font:900 30px/1.15 Nunito,sans-serif}
.ubora-card-text{margin:10px 0 17px;color:var(--ubora-muted);font-size:13px;line-height:1.55}.center-text{text-align:center}
.ubora-form{display:grid;gap:8px}.ubora-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.ubora-field{display:grid;gap:5px}.ubora-field.full{grid-column:1/-1}
.ubora-form label,.ubora-field>span{color:var(--ubora-navy);font-size:12px;font-weight:800}
.ubora-input,.ubora-form input:not([type="checkbox"]){width:100%;min-height:43px;border:1px solid var(--ubora-line);border-radius:11px;background:#fff;padding:10px 13px;color:var(--ubora-text);font:500 13px Poppins,Arial,sans-serif;outline:none;transition:.2s}
.ubora-input:focus,.ubora-form input:not([type="checkbox"]):focus{border-color:var(--ubora-blue-2);box-shadow:0 0 0 4px rgba(47,127,196,.11)}
.ubora-field small,.field-error{color:var(--ubora-muted);font-size:10px}.field-error{color:#b42318}
.ubora-remember{display:flex!important;flex-direction:row;align-items:center;gap:8px;margin:2px 0 3px!important;color:var(--ubora-muted)!important;font-weight:600!important}.ubora-remember input{width:15px;height:15px;margin:0}
.ubora-primary-btn,.ubora-secondary-btn{width:100%;min-height:44px;border-radius:11px;border:0;font:800 13px Poppins,Arial,sans-serif;cursor:pointer;transition:.2s}
.ubora-primary-btn{margin-top:6px;background:linear-gradient(135deg,var(--ubora-blue),var(--ubora-blue-2));color:#fff;box-shadow:0 9px 22px rgba(31,95,159,.2)}
.ubora-primary-btn:hover{transform:translateY(-1px)}
.ubora-secondary-btn{background:#eef4fa;color:var(--ubora-blue);border:1px solid #d8e5f1}.ubora-secondary-btn:disabled{opacity:.62;cursor:not-allowed}
.ubora-links{display:flex;justify-content:space-between;gap:16px;margin-top:13px;padding-top:13px;border-top:1px solid #edf1f5}.ubora-links.center{justify-content:center}
.ubora-links a,.ubora-back-link{color:var(--ubora-blue);text-decoration:none;font-size:12px;font-weight:800}.ubora-back-link{display:block;text-align:center;margin-top:14px}
.ubora-single-layout{padding:24px 16px;display:grid;place-items:center;background:radial-gradient(circle at 10% 10%,rgba(47,127,196,.1),transparent 25%),linear-gradient(180deg,#f7faff,#edf3f9)}
.ubora-single-layout .ubora-card{width:min(500px,100%)}
.ubora-target{margin:-8px auto 16px;width:max-content;max-width:100%;padding:7px 11px;border-radius:999px;background:#eef5fb;color:var(--ubora-blue);font-size:12px;font-weight:800;overflow-wrap:anywhere}
.ubora-otp-input{text-align:center!important;font-size:22px!important;font-weight:800!important;letter-spacing:.32em!important;padding-left:calc(13px + .32em)!important}
.ubora-otp-help{margin:17px 0 12px;padding:12px 14px;border-radius:12px;background:#f7f9fc;color:var(--ubora-muted);font-size:12px;line-height:1.5}.ubora-otp-help strong{color:var(--ubora-navy)}.ubora-otp-help p{margin:5px 0 0}
.ubora-flashes{position:fixed;z-index:20;top:12px;left:50%;width:min(560px,calc(100% - 28px));transform:translateX(-50%);display:grid;gap:7px}.ubora-flash{padding:11px 14px;border-radius:11px;background:#eaf3fb;color:var(--ubora-navy);box-shadow:0 10px 28px rgba(16,38,74,.13);font-size:13px;font-weight:700}.ubora-flash.success{background:#e9f7ef;color:#17623a}.ubora-flash.danger{background:#fdecec;color:#9f2435}.ubora-flash.warning{background:#fff5dc;color:#7a5200}
@media (min-width:941px){html,body{height:100%;overflow:hidden}.ubora-auth-split,.ubora-hero,.ubora-form-side{height:100vh;height:100dvh}.ubora-single-layout{height:100vh;height:100dvh;overflow:hidden}}
@media (min-width:941px) and (max-height:780px){.ubora-hero{padding-top:18px;padding-bottom:18px}.ubora-logo-box{width:120px;padding:7px}.ubora-logo-box img{max-height:116px}.ubora-admission-badge{margin:10px 0 6px;padding:5px 10px}.ubora-hero h1{font-size:44px}.ubora-hero-text{margin-top:8px;font-size:12px}.ubora-form-side{padding:14px 24px}.ubora-card{padding:22px 28px}.ubora-card.wide{padding:18px 26px}.ubora-card h1,.ubora-card h2{font-size:26px}.ubora-card-text{margin:7px 0 12px;font-size:12px}.ubora-form{gap:6px}.ubora-form-grid{gap:7px 12px}.ubora-input,.ubora-form input:not([type="checkbox"]){min-height:39px;padding:8px 11px}.ubora-primary-btn,.ubora-secondary-btn{min-height:40px}.ubora-logo-box.compact{width:72px;margin-bottom:8px}.ubora-logo-box.compact img{max-height:72px}.ubora-otp-help{margin:12px 0 9px;padding:9px 11px}}
@media(max-width:940px){.ubora-auth-split{grid-template-columns:1fr}.ubora-hero{min-height:auto;padding:25px 22px 34px}.ubora-hero-center{text-align:center;margin:22px auto 0;padding:0}.ubora-logo-box{margin-inline:auto;width:125px}.ubora-logo-box img{max-height:120px}.ubora-hero h1{font-size:46px}.ubora-hero-text{margin-inline:auto}.ubora-form-side{min-height:auto;padding:28px 16px 42px}.ubora-single-layout{padding:24px 12px}}
@media(max-width:620px){.ubora-card,.ubora-card.wide{padding:22px 18px;border-radius:19px}.ubora-card h1,.ubora-card h2{font-size:26px}.ubora-form-grid{grid-template-columns:1fr}.ubora-field.full{grid-column:auto}.ubora-links{flex-direction:column;align-items:center;gap:8px}.ubora-hero h1{font-size:40px}}


/* V4.1 — centrage du panneau gauche */
@media (min-width:941px){
  .ubora-hero{
    justify-content:center;
    align-items:center;
    text-align:center;
    gap:18px;
  }
  .ubora-hero-top,
  .ubora-hero-center{
    width:min(620px,100%);
    margin:0 auto;
  }
  .ubora-hero-center{
    padding:0;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .ubora-logo-box{margin-inline:auto}
  .ubora-hero-text{margin:12px auto 0}
}

@media (min-width:941px) and (max-height:780px){
  .ubora-hero{gap:10px}
  .ubora-hero-text{margin-top:7px}
}


/* V4.2 — centrage réel du bloc complet à gauche */
@media (min-width:941px){
  .ubora-hero{
    display:grid !important;
    place-items:center !important;
    text-align:left !important;
  }
  .ubora-hero-content{
    width:min(620px,100%);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:0;
    transform:translateY(-8px);
    position:relative;
    z-index:1;
  }
  .ubora-hero-top,
  .ubora-hero-center{
    width:100% !important;
    margin:0 !important;
  }
  .ubora-hero-center{
    display:flex;
    flex-direction:column;
    align-items:flex-start !important;
    padding:28px 0 0 !important;
  }
  .ubora-logo-box{margin:0 !important}
  .ubora-hero-text{margin:12px 0 0 !important}
}

@media (min-width:941px) and (max-height:780px){
  .ubora-hero-content{transform:translateY(0)}
  .ubora-hero-center{padding-top:18px !important}
}


/* ===== Register status v1.2 ===== */
.ubora-register-card{
  overflow:auto;
}
.ubora-status-options{
  display:grid;
  gap:10px;
  margin:8px 0 14px;
}
.ubora-status-card{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:13px 14px;
  border:1px solid #d9e4f0;
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  transition:.18s ease;
}
.ubora-status-card:hover{
  border-color:#87a8c9;
  background:#f8fbff;
}
.ubora-status-card.selected{
  border-color:#145699;
  background:#f2f7fd;
  box-shadow:0 0 0 3px rgba(20,86,153,.08);
}
/* Override generic form input rules that enlarged radios */
.ubora-status-card input.ubora-status-radio[type="radio"]{
  appearance:auto !important;
  -webkit-appearance:radio !important;
  width:16px !important;
  min-width:16px !important;
  max-width:16px !important;
  height:16px !important;
  min-height:16px !important;
  padding:0 !important;
  margin:2px 0 0 !important;
  border:0 !important;
  border-radius:50% !important;
  box-shadow:none !important;
  accent-color:#145699;
}
.ubora-status-copy{
  display:grid;
  gap:3px;
}
.ubora-status-copy strong{
  color:#182642;
  font-size:14px;
  line-height:1.35;
}
.ubora-status-copy small{
  color:#69778a;
  font-size:12px;
  line-height:1.45;
}
#newAccountSection[hidden],
#existingAccountSection[hidden]{
  display:none !important;
}
.ubora-registration-section{
  margin-top:14px;
  padding-top:16px;
  border-top:1px solid #e2eaf3;
}
.ubora-section-head{
  margin-bottom:14px;
}
.ubora-section-head>span{
  display:block;
  color:#145699;
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ubora-section-head h3{
  margin:0;
  color:#182642;
  font-size:20px;
}
.ubora-existing-access>p{
  margin:0 0 12px;
  color:#536277;
  font-size:13px;
  line-height:1.55;
}
.ubora-access-actions{
  display:grid;
  gap:9px;
  margin:14px 0;
}
.ubora-access-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:9px 13px;
  border:1px solid #d7e3ef;
  border-radius:11px;
  background:#fff;
  color:#182642;
  font-weight:800;
  text-align:center;
  text-decoration:none;
}
.ubora-access-link.primary{
  background:#145699;
  border-color:#145699;
  color:#fff;
}
.ubora-account-note{
  padding:12px 13px;
  border-left:4px solid #e8b83f;
  border-radius:8px;
  background:#fff9e9;
  color:#5e563c;
  font-size:12px;
  line-height:1.5;
}
@media(max-width:620px){
  .ubora-status-card{padding:12px}
  .ubora-status-copy strong{font-size:13px}
}

/* ===== V6.3 — Google + responsive, basé sur l'interface V5.1.2 ===== */
html,body{max-width:100%;overflow-x:hidden}
.ubora-google-btn{
  width:100%;min-height:46px;margin:2px 0 0;padding:10px 14px;
  display:flex;align-items:center;justify-content:center;gap:11px;
  border:1px solid #d8e1ec;border-radius:11px;background:#fff;color:#26364a;
  text-decoration:none;font:800 13px Poppins,Arial,sans-serif;
  box-shadow:0 4px 14px rgba(16,38,74,.06);transition:.18s ease;
}
.ubora-google-btn:hover{border-color:#9fb5ca;background:#f9fbfd;transform:translateY(-1px)}
.ubora-google-logo{display:block;width:24px;height:24px;object-fit:contain;flex:0 0 24px}
.ubora-auth-separator{display:flex;align-items:center;gap:10px;margin:12px 0;color:#8996a7;font-size:10px;text-align:center}
.ubora-auth-separator:before,.ubora-auth-separator:after{content:"";height:1px;flex:1;background:#e8edf3}
.ubora-auth-separator span{white-space:nowrap}
.ubora-google-note{margin:8px 0 0;color:#65758a;font-size:10.5px;line-height:1.45;text-align:center}
.ubora-google-account{margin:0 0 14px;padding:10px 12px;border-radius:11px;background:#f1f6fb;color:#214e7a;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.ubora-confirm-identity{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:9px!important;margin:6px 0!important;color:#58677a!important;font-weight:600!important;line-height:1.45}
.ubora-confirm-identity input[type="checkbox"]{width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;margin:2px 0 0!important;padding:0!important}
.ubora-confirm-identity span{font-size:11px}

/* Les pages d'authentification doivent fonctionner sur téléphone, tablette,
   ordinateur et écran paysage sans modifier le design V5.1.2. */
@media (max-width:940px){
  html,body{height:auto!important;overflow:auto!important}
  .ubora-auth-page{min-height:100dvh}
  .ubora-auth-split{display:block}
  .ubora-hero{min-height:auto!important;height:auto!important;padding:22px max(18px,env(safe-area-inset-left)) 28px max(18px,env(safe-area-inset-right))}
  .ubora-hero-content{transform:none!important;width:100%!important;align-items:center!important;text-align:center!important}
  .ubora-hero-top,.ubora-hero-center{width:100%!important;text-align:center!important;align-items:center!important}
  .ubora-hero-center{padding-top:18px!important}
  .ubora-logo-box{margin-inline:auto!important}
  .ubora-hero-text{margin-inline:auto!important}
  .ubora-form-side{min-height:auto!important;height:auto!important;padding:24px max(14px,env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));display:block}
  .ubora-card,.ubora-card.wide{margin:0 auto}
}
@media (max-width:680px){
  .ubora-hero{padding-top:18px;padding-bottom:22px}
  .ubora-overline{font-size:10px}.ubora-portal-label{font-size:11px}
  .ubora-logo-box{width:98px;padding:7px;border-radius:13px}.ubora-logo-box img{max-height:95px}
  .ubora-admission-badge{margin:10px 0 7px;padding:5px 9px;font-size:9px}
  .ubora-hero h1{font-size:clamp(31px,10vw,40px)}
  .ubora-hero-text{font-size:12px;line-height:1.45;max-width:480px}
  .ubora-form-side{padding-top:18px}
  .ubora-card,.ubora-card.wide{width:100%;padding:20px 16px;border-radius:18px}
  .ubora-card h1,.ubora-card h2{font-size:24px}
  .ubora-card-text{font-size:12px;margin-bottom:13px}
  .ubora-form-grid{grid-template-columns:1fr;gap:8px}
  .ubora-status-options{gap:8px}
  .ubora-status-card{padding:11px 10px;gap:9px}
  .ubora-links{flex-direction:column;align-items:center;gap:8px}
  .ubora-google-btn,.ubora-primary-btn,.ubora-secondary-btn{min-height:46px}
  .ubora-input,.ubora-form input:not([type="checkbox"]){font-size:16px;min-height:46px}
}
@media (max-width:390px){
  .ubora-hero{padding-left:13px;padding-right:13px}
  .ubora-form-side{padding-left:10px;padding-right:10px}
  .ubora-card,.ubora-card.wide{padding:18px 13px;border-radius:15px}
  .ubora-card h1,.ubora-card h2{font-size:22px}
  .ubora-status-copy strong{font-size:12px}.ubora-status-copy small{font-size:10.5px}
  .ubora-google-btn{padding-inline:10px;font-size:12px}
  .ubora-auth-separator span{font-size:9px;white-space:normal}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:940px){
  .ubora-auth-split{display:grid;grid-template-columns:minmax(250px,.82fr) minmax(390px,1.18fr);min-height:100dvh}
  .ubora-hero{min-height:100dvh!important;padding:16px 20px}
  .ubora-hero-top{display:none}
  .ubora-hero-center{padding-top:0!important}
  .ubora-logo-box{width:76px}.ubora-logo-box img{max-height:74px}
  .ubora-admission-badge{margin:7px 0 5px}
  .ubora-hero h1{font-size:30px}.ubora-hero-text{font-size:10.5px;margin-top:7px!important}
  .ubora-form-side{min-height:100dvh!important;padding:12px 18px;overflow:auto}
  .ubora-card,.ubora-card.wide{padding:16px 18px}
  .ubora-card-text{margin:6px 0 9px}.ubora-form{gap:5px}
  .ubora-input,.ubora-form input:not([type="checkbox"]){min-height:39px;padding:7px 10px;font-size:13px}
  .ubora-google-btn,.ubora-primary-btn{min-height:39px}
}
@media (prefers-reduced-motion:reduce){.ubora-google-btn,.ubora-primary-btn,.ubora-input,.ubora-form input{transition:none!important}}


/* ===== V6.4.1 — logo Google strictement contenu dans le bouton ===== */
.ubora-google-btn > img.ubora-google-logo{
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
  max-width:22px!important;max-height:22px!important;object-fit:contain!important;display:block!important;
  flex:0 0 22px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
