/* Approved Portal concept, 2026-10-28. Eurion web manual 1.2.
   This layer belongs only to the public authentication and personal account pages. */

.portal-layout .portal-eyebrow{margin:0 0 10px;color:var(--blue);font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.15em}
.portal-layout.auth-layout{display:flex;flex-direction:column;min-height:100svh}
.portal-layout.auth-layout .auth-page{flex:1;min-height:100svh;padding:64px 32px}
.portal-layout .auth-login-shell{width:min(100%,980px);grid-template-columns:minmax(0,1fr) minmax(0,440px);align-items:stretch;justify-items:stretch;gap:24px}
.portal-auth-intro{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:44px;border:0;border-radius:0;background:transparent}
.portal-auth-brand{display:flex;flex-direction:column}
.portal-auth-intro .auth-page-logo{width:290px;max-width:100%;margin-bottom:10px;flex-shrink:0}
.portal-auth-intro h2{margin:0;color:#fff;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:normal;overflow-wrap:anywhere}
.portal-auth-intro .auth-destination{margin:32px 0;padding:0 0 32px;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.portal-destination-label{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.auth-destination-logo{display:block;width:220px;max-width:100%;height:54px;object-fit:contain;object-position:left center}
.portal-auth-content{width:100%;min-width:0}
.portal-layout.auth-layout .auth-panel,.portal-auth-content>.panel{min-height:100%;padding:32px;border-radius:22px}
.portal-layout .auth-panel--form>.auth-panel__heading{margin-bottom:26px;padding-bottom:0;border:0;gap:10px}
.portal-layout.auth-layout .auth-panel__heading h1{font-size:28px;line-height:1.3;color:var(--text)}
.portal-layout .auth-panel__heading p{font-size:14px}
.portal-layout .auth-form{gap:22px}
.portal-layout .auth-fields{gap:20px}
.portal-layout .auth-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;min-width:0}
.portal-layout .auth-label-row .auth-label{margin:0}
.portal-layout .auth-forgot-password{color:var(--blue);font-size:12px;line-height:1.5}
.portal-layout .auth-submit{border-radius:11px;font-weight:600;min-height:50px}
.portal-layout .auth-separator{display:flex;gap:14px;margin:24px 0;color:var(--muted);font-size:12px}
.portal-layout .auth-separator:before,.portal-layout .auth-separator:after{content:"";flex:1;height:1px;background:var(--line)}
.portal-layout .auth-register-link{border:0;margin:22px 0 0;padding:0;font-size:13px}
.portal-layout .auth-google-button{border-radius:11px;font-weight:500}
.portal-auth-footer{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 28px;padding:0 12px;font-size:12px;color:var(--muted)}
.portal-auth-footer .language-picker{width:auto;max-width:100%;margin:0}
.portal-auth-footer>.legal-links{justify-content:center;width:auto;margin:0;font-size:12px;text-align:center}

/* Account notices share the portal card, with one primary action and a distinct status. */
.portal-layout .account-message{display:flex;flex-direction:column;gap:28px}
.account-message__identity{display:flex;align-items:center;gap:18px}
.portal-layout .account-message__identity .portal-eyebrow{margin:0;line-height:1.5}
.account-message__symbol{display:grid;place-items:center;flex-shrink:0;width:60px;height:60px;border-radius:16px;background:var(--panel-raised);color:var(--blue)}
.account-message__symbol .auth-icon{width:30px;height:30px}
.account-message__symbol--check{color:#75cfa3}
.account-message__copy{min-width:0}
.portal-layout .account-message h1{margin:0 0 14px;font-size:30px;line-height:1.24;letter-spacing:-.035em;text-wrap:balance;color:var(--text)}
.portal-layout .account-message__description{margin:0;color:var(--muted);font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.account-message__actions{display:grid;gap:10px;margin-top:auto}
.portal-layout .account-message__primary{gap:16px;text-decoration:none}
.portal-layout .account-message__primary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.account-message__secondary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border:0;border-radius:11px;background:rgb(255 255 255 / .08);color:var(--text);font-size:14px;font-weight:500;text-align:center;line-height:1.5;transition:background-color 180ms ease}
.account-message__secondary:hover{background:rgb(255 255 255 / .12);text-decoration:none}
.account-message__secondary:active{background:rgb(255 255 255 / .06)}
.account-message__footer{padding-top:20px;border-top:1px solid var(--line);text-align:center}
.account-message__footer>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--blue);font-size:13px;line-height:1.5}

/* Centered account: logo and menu on the left, one content card on the right. */
.portal-layout .account-sidebar{grid-area:menu;min-width:0;padding-top:6px;border:0;background:transparent}
.portal-layout .account-sidebar>.auth-page-logo{width:166px;max-width:100%;margin:0 0 22px}
.portal-layout .account-sidebar-footer{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.portal-layout .account-profile{display:flex;gap:11px;align-items:center;min-width:0;max-width:205px;border-radius:10px;padding:4px;color:var(--text)}
.portal-layout .account-profile:hover{text-decoration:none;background:var(--panel-hover)}
.portal-layout .account-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--panel-raised);flex-shrink:0;color:var(--muted)}
.portal-layout .account-avatar .auth-icon{width:18px;height:18px}
.portal-layout .account-profile-copy{min-width:0;display:grid;gap:2px;font-size:12px;line-height:1.4}
.portal-layout .account-profile-copy strong{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-layout .account-profile-copy>span{font-size:11px;color:var(--muted)}
.portal-layout .account-sidebar-logout{margin:12px 0 0}
.portal-layout .account-sidebar-logout button{justify-content:flex-start;width:100%;gap:11px;padding:11px 13px;background:transparent;color:var(--muted);font-size:12px;font-weight:400;text-align:left}
.portal-layout .account-sidebar-logout button:hover{background:var(--panel-raised);color:var(--text)}
.portal-layout .account-sidebar-logout .auth-icon{width:18px;height:18px;color:#c76e76}
.portal-layout.account-layout .account-page{padding:32px 28px;min-height:100svh}
.portal-layout .account-shell--portal{width:min(100%,900px);gap:16px 40px;grid-template-columns:184px minmax(0,1fr);grid-template-areas:"menu topbar" "menu content" "language language"}
.portal-layout .account-content{width:100%;padding:32px;border:1px solid var(--line);border-radius:20px;background:var(--panel)}
.portal-page-heading{margin-bottom:12px}
.portal-page-heading h1{font-size:28px;line-height:1.3;margin:0;font-weight:600;color:var(--text)}
.portal-layout .account-description{margin:0 0 28px;font-size:14px;line-height:1.75;color:var(--muted)}
.portal-layout .account-language{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px 28px;padding:0;border:0}
.portal-layout .account-language .legal-links{width:auto;margin:0;text-align:center;justify-content:center;font-size:12px}
.portal-layout .account-language>div{flex-shrink:0;max-width:100%}
.portal-layout .account-language .language-picker{width:auto;margin:0}

/* Application rows share the content card and keep the configured brand assets. */
.portal-layout .application-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;border:0;padding:0;margin:0;background:transparent;border-radius:0;overflow:visible}
.portal-layout .application-list>li{border:0;min-width:0;display:flex}
.portal-layout .application-list>li+li{border-top:1px solid var(--line)}
.portal-layout .application-link{display:grid;grid-template-columns:minmax(70px,120px) minmax(0,1fr) auto;align-items:center;gap:18px;padding:24px 12px;min-height:100px;width:100%;border:0;border-radius:12px;background:transparent;text-decoration:none}
.portal-layout .application-link:hover{background:var(--panel-hover);text-decoration:none}
.portal-layout .application-link:active{background:var(--panel-active)}
.portal-layout .application-link:focus-visible{outline-offset:4px}
.portal-layout .application-brand{display:flex;align-items:center;justify-content:flex-start;min-height:34px}
.portal-layout .application-brand img{display:block;width:auto;max-width:100%;height:32px;object-fit:contain;object-position:left}
.portal-layout .application-brand--icon img{width:32px;height:32px}
.portal-layout .application-copy{display:grid;gap:5px;text-align:left;min-width:0}
.portal-layout .application-name{font-size:15px;font-weight:600;line-height:1.5;color:var(--text)}
.portal-layout .application-description{font-size:13px;line-height:1.6;color:var(--muted)}
.portal-layout .application-launch{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;font-size:12px;color:var(--text)}
.portal-layout .application-arrow{font-size:20px;color:var(--muted)}
.portal-layout .application-link:hover .application-arrow{color:var(--blue)}
.portal-layout .apps-empty{min-height:180px;display:flex;align-items:center;justify-content:center;text-align:center;padding:32px;max-width:720px}

/* Security, profile and MFA use the same surfaces and real actions. */
.portal-layout .account-overview{max-width:none}
.portal-layout .account-settings-card{padding:0;border:0;border-radius:0;background:transparent}
.portal-layout .account-settings-section{display:grid;grid-template-columns:40px minmax(0,1fr);gap:20px;padding:28px 0}
.portal-layout .account-settings-section:first-child{padding-top:0}
.portal-layout .account-settings-section:last-child{padding-bottom:0}
.portal-layout .account-settings-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--panel-active);color:var(--blue)}
.portal-layout .account-settings-icon .auth-icon{width:20px;height:20px}
.portal-layout .account-settings-body{min-width:0}
.portal-layout .account-settings-heading{justify-content:flex-start;gap:12px;margin:3px 0 10px}
.portal-layout .account-settings-heading h2{font-size:17px;line-height:1.5}
.portal-layout .account-settings-section p{font-size:14px;line-height:1.75;margin:0 0 10px}
.portal-layout .account-settings-section .badge{font-size:11px;border-radius:7px;padding:3px 8px;line-height:1.5}
.portal-layout .badge--success{background:#75cfa30f;color:#75cfa3}
.portal-layout .account-settings-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}
.portal-layout .account-settings-actions>form{max-width:100%;margin:0}
.portal-layout .account-settings-actions .auth-submit,.portal-layout .account-settings-actions button{width:auto;max-width:100%;min-height:44px;font-size:13px;padding:11px 16px;gap:12px;white-space:normal}
.portal-layout .account-settings-actions .auth-submit{justify-content:space-between}
.portal-layout .account-settings-actions .auth-submit>span{min-width:0;overflow-wrap:anywhere}
.portal-layout .account-text-action{color:var(--blue);background:transparent;font-weight:500}
.portal-layout .account-text-action:hover{background:var(--panel-raised)}
.portal-layout .account-settings-actions .danger{background:rgb(238 69 97 / 14%);color:#ff9cad}
.portal-layout .account-settings-actions .danger:hover{background:rgb(238 69 97 / 28%)}
.portal-layout .account-content>.auth-panel,.portal-layout .account-content>.panel{border:0;border-radius:0;padding:0;background:transparent}
.portal-layout .account-content .auth-input{min-height:52px;padding-block:14px}
.portal-layout .account-content .auth-input-icon{top:16px}
.portal-layout .account-content .auth-password-toggle{top:4px;inset-inline-end:4px}
.portal-layout .account-content .auth-input:focus{outline:none}
.portal-layout .account-content .codes{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-layout .account-content .mfa-setup{margin-bottom:26px}

@media(max-width:1100px){
 .portal-auth-intro{padding:36px}
}
@media(max-width:850px){
 .portal-layout .auth-login-shell{gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,380px)}
 .portal-layout.auth-layout .auth-page{padding:36px 24px}
 .portal-auth-intro{padding:28px}
 .portal-layout .account-shell--portal{column-gap:28px;grid-template-columns:166px minmax(0,1fr)}
 .portal-layout .account-content{padding:28px}
 .portal-layout .application-link{grid-template-columns:96px minmax(0,1fr);gap:6px 16px}
 .portal-layout .application-brand{grid-row:span 2}
 .portal-layout .application-launch{grid-column:2;justify-content:flex-start}
}
@media(max-width:760px){
 .portal-layout.account-layout .account-page{padding:32px 20px}
 .portal-layout .account-shell--portal{width:min(100%,580px);gap:16px}
 .portal-layout .account-sidebar{padding:0}
 .portal-layout .account-sidebar>.auth-page-logo{width:154px;margin-bottom:24px}
 .portal-layout .account-sidebar-footer{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:14px}
 .portal-layout .account-profile{flex:1;max-width:none}
 .portal-layout .account-sidebar-logout{margin:0;max-width:50%}
 .portal-layout .account-sidebar-logout button{gap:8px;padding:10px 8px}
 .portal-layout .account-language{flex-direction:column;gap:8px}
}
@media(max-width:700px){
 .portal-layout.auth-layout .auth-page{padding:32px 20px;align-items:flex-start}
 .portal-layout .auth-login-shell{grid-template-columns:minmax(0,1fr);width:min(100%,460px);gap:16px}
 .portal-auth-intro{display:contents}
 .portal-auth-brand,.portal-auth-intro-copy{padding-inline:22px}
 .portal-auth-brand{grid-row:1}
 .portal-auth-intro .auth-page-logo{width:220px;margin-bottom:6px}
 .portal-auth-content{grid-row:2}
 .portal-auth-intro-copy{grid-row:3;padding-block:8px}
 .portal-auth-intro .auth-destination{margin:16px 0 0;padding:0;border:0;gap:6px}
 .auth-destination-logo{width:180px;height:42px}
 .portal-auth-footer{padding:4px 0 0;flex-direction:column;gap:8px}
 .portal-auth-footer>.legal-links{justify-content:center;text-align:center}
 .portal-layout .portal-page-heading h1{font-size:26px}
 .portal-layout .account-description{font-size:13px;margin-bottom:25px}
 .portal-layout .application-link{padding:20px 4px;min-height:96px}
 .portal-layout .application-brand img{height:27px;max-width:100%}
 .portal-layout .application-name{font-size:14px}
 .portal-layout .application-description{font-size:13px}
 .portal-layout .account-language .legal-links{gap:8px 18px}
 .portal-layout .account-language .language-picker{margin:0}
 .portal-layout .account-settings-section{grid-template-columns:34px minmax(0,1fr);gap:14px;padding:24px 0}
 .portal-layout .account-settings-icon{width:34px;height:34px}
 .portal-layout .account-settings-heading h2{font-size:16px}
 .portal-layout .account-settings-section p{font-size:13px}
 .portal-layout .account-settings-actions{gap:10px}
 .portal-layout .account-settings-actions .auth-submit,.portal-layout .account-settings-actions button{font-size:13px;padding:11px 13px}
 .portal-layout .auth-input,.portal-layout .account-content .auth-input{font-size:16px}
 .portal-layout .account-content .codes{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px){
 .portal-layout .account-message{gap:24px}
 .portal-layout .account-message h1{font-size:27px}
 .portal-layout.auth-layout .auth-page{padding:26px 16px}
 .portal-layout.auth-layout .auth-panel,.portal-auth-content>.panel{padding:26px 22px}
 .portal-layout .account-settings-section{grid-template-columns:minmax(0,1fr);gap:0}
 .portal-layout .account-settings-icon{display:none}
 .portal-layout.account-layout .account-page{padding-inline:16px}
 .portal-layout .account-content{padding:24px 20px}
 .portal-layout .account-profile{gap:8px}
 .portal-layout .account-avatar{width:30px;height:30px}
 .portal-layout .application-link{grid-template-columns:70px minmax(0,1fr);column-gap:12px}
}
