.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right,#5b7cff22,transparent 30%), linear-gradient(180deg,#f5f7ff 0%,#eef2ff 100%);
}

.login-card {
    width: 420px;
    background: #fff;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 25px 80px rgba(15,23,42,.12);
}

.system-error-page {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.system-error-card {
    position: relative;
    width: min(720px, 100%);
    padding: 58px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 80px rgba(15,23,42,.12);
    text-align: center;
}

.system-error-code {
    position: absolute;
    top: -38px;
    right: 20px;
    color: #f1f5f9;
    font-size: 150px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
    user-select: none;
}

.system-error-icon {
    position: relative;
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(135deg,#ef4444,#dc2626);
    box-shadow: 0 16px 34px rgba(220,38,38,.25);
    font-size: 32px;
    font-weight: 600;
}

.system-error-eyebrow {
    position: relative;
    color: var(--bc-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
}

.system-error-card h1 {
    position: relative;
    margin: 12px 0;
    color: var(--bc-text);
    font-size: clamp(30px,4vw,44px);
    line-height: 1.1;
    letter-spacing: 0;
}

.system-error-card p {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
}

.system-error-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 22px;
}

.system-error-primary,
.system-error-secondary {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #dbe4ef;
    border-radius: 4px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.system-error-primary {
    display: inline-flex;
    align-items: center;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg,var(--bc-accent),var(--bc-accent));
    box-shadow: 0 13px 28px rgba(0, 139, 139,.22);
}

.system-error-secondary {
    color: #334155;
    background: #fff;
}

.system-error-card small {
    position: relative;
    display: block;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .system-error-card { padding: 42px 22px; }
    .system-error-actions { flex-direction: column; }
    .system-error-primary { justify-content: center; }
}


/* MOB365 Business Central Login */
.empty-layout { min-height:100vh; }
.enterprise-login { min-height:100vh; display:grid; grid-template-columns:minmax(520px,1.05fr) minmax(400px,.95fr); background:#f3f3f3; color:#242424; }
.login-showcase { position:relative; display:flex; flex-direction:column; padding:48px clamp(40px,5vw,76px); color:#242424; background:#ffffff; border-right:1px solid #d2d0ce; }
.showcase-glow { display:none; }
.showcase-brand,.mobile-login-brand { display:flex; align-items:center; gap:11px; }
.enterprise-logo { display:grid; place-items:center; width:42px; height:42px; border-radius:2px; background:#008272; color:#fff; font-size:20px; font-weight: 600; box-shadow:none; }
.showcase-brand strong { display:block; font-size:18px; letter-spacing:.03em; font-weight: 600; }
.showcase-brand span { display:block; color:#605e5c; font-size:9px; font-weight:600; letter-spacing:.18em; margin-top:2px; }
.showcase-copy { max-width:620px; margin:auto 0; }
.eyebrow,.login-kicker { display:block; color:#605e5c; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.showcase-copy h1 { margin:14px 0 12px; font-size:clamp(38px,4vw,56px); line-height:1.05; letter-spacing: 0; font-weight:600; color:#242424; }
.showcase-copy p { max-width:590px; margin:0; color:#605e5c; font-size:16px; line-height:1.6; }
.showcase-features { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:36px; border:1px solid #d2d0ce; background:#fff; }
.showcase-features article { display:flex; gap:11px; min-height:76px; padding:15px; border:0; border-right:1px solid #d2d0ce; border-radius:0; background:#fff; }
.showcase-features article:last-child { border-right:0; }
.showcase-features article>span { color:#008272; font-size:10px; font-weight: 600; }
.showcase-features strong,.showcase-features small { display:block; }
.showcase-features strong { color:#323130; font-size:12px; font-weight:600; }
.showcase-features small { margin-top:4px; color:#605e5c; font-size:10px; line-height:1.4; }
.showcase-footer { display:flex; align-items:center; gap:8px; margin-top:10px; color:#605e5c; font-size:10px; font-weight:500; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#008272; box-shadow:none; }
.login-panel { display:grid; place-items:center; padding:32px; background:#f3f3f3; }
.login-panel-inner { width:min(350px,100%); padding:28px; border:1px solid #d2d0ce; background:#fff; }
.mobile-login-brand { display:none; margin-bottom:28px; }
.mobile-login-brand strong { font-size:19px; }
.login-panel h2 { margin:8px 0 5px; font-size:27px; letter-spacing: 0; font-weight:600; color:#242424; }
.login-subtitle { margin:0 0 19px; color:#605e5c; font-size:12px; }
.login-alert { display:flex; align-items:center; gap:10px; margin-bottom:14px; padding:10px 12px; border:1px solid #d2d0ce; border-radius:0; background:#faf9f8; color:#323130; }
.login-alert>span { display:grid; place-items:center; width:28px; height:28px; border-radius:0; font-weight: 600; color:#fff; background:#605e5c; }
.login-alert strong,.login-alert small { display:block; }
.login-alert strong { font-size:12px; }
.login-alert small { margin-top:2px; color:#605e5c; font-size:10px; }
.login-alert.danger { color:#a4262c; background:#fff; border-color:#a4262c; }
.login-alert.danger>span { background:#a4262c; }
.login-alert.success { color:#107c10; background:#fff; border-color:#d2d0ce; }
.login-alert.success>span { background:#107c10; }
.enterprise-login-form { display:grid; gap:12px; }
.enterprise-field label { display:block; margin-bottom:5px; color:#323130; font-size:11px; font-weight:600; }
.field-shell { display:flex; align-items:center; height:40px; border:1px solid #8a8886; border-radius:0; background:#fff; box-shadow:none; transition:border-color .12s; }
.field-shell:focus-within { border-color:#008272; box-shadow:inset 0 0 0 1px #008272; }
.field-icon { display:grid; place-items:center; width:38px; color:#605e5c; font-weight:600; border-right:1px solid #edebe9; }
.field-shell input { flex:1; height:100%; min-width:0; border:0; outline:0; background:transparent; color:#242424; font:inherit; font-size:13px; padding:0 12px; }
.field-shell input::placeholder { color:#8a8886; }
.enterprise-login-button { display:flex; align-items:center; justify-content:center; gap:10px; height:40px; margin-top:2px; padding:0 15px; border:1px solid #008272; border-radius:2px; color:#fff; background:#008272; box-shadow:none; font:inherit; font-size:12px; font-weight:600; cursor:pointer; transition:background .12s; }
.enterprise-login-button:hover { transform:none; background:#006f62; box-shadow:none; }
.enterprise-login-button b { font-size:16px; font-weight:400; }
.security-note { display:flex; align-items:center; gap:9px; margin-top:14px; padding:9px 10px; border:1px solid #d2d0ce; border-radius:0; background:#faf9f8; color:#605e5c; }
.security-note>span { color:#008272; font-size:10px; }
.security-note p { margin:0; }
.security-note strong,.security-note small { display:block; }
.security-note strong { color:#323130; font-size:11px; font-weight:600; }
.security-note small { margin-top:2px; color:#605e5c; font-size:10px; }
.login-legal { margin-top:18px; color:#8a8886; font-size:9px; text-align:center; }
@media(max-width:1050px){.enterprise-login{grid-template-columns:1fr}.login-showcase{display:none}.login-panel{min-height:100vh}.mobile-login-brand{display:flex}}
@media(max-width:560px){.login-panel{padding:18px}.login-panel-inner{width:100%;padding:22px}.login-panel h2{font-size:25px}}




/* R140 - MOB365 / Business Central login */
.bc-login-centered{
    width:100%; min-height:100vh; display:flex; align-items:center; justify-content:center;
    padding:32px; background:#f5f5f5; color:#242424;
    grid-template-columns:none;
}
.bc-login-centered .login-panel{
    display:block; width:100%; max-width:520px; min-height:0; padding:0; background:transparent;
}
.bc-login-centered .login-panel-inner{
    width:100%; padding:0; border:1px solid #c8c6c4; border-top:3px solid #008272;
    background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.login-brand-centered{
    display:flex; align-items:center; gap:12px; padding:18px 24px;
    border-bottom:1px solid #edebe9; background:#fff;
}
.login-brand-centered .enterprise-logo{width:38px;height:38px;font-size:17px;border-radius:2px;}
.login-brand-centered strong{display:block;color:#242424;font-size:17px;letter-spacing:.02em;}
.login-brand-centered span{display:block;margin-top:2px;color:#605e5c;font-size:9px;font-weight:600;letter-spacing:.14em;}
.bc-login-centered .login-heading{padding:24px 24px 6px;}
.bc-login-centered .login-heading h2{font-size:26px;margin:6px 0 4px;}
.bc-login-centered .login-alert,
.bc-login-centered .enterprise-login-form,
.bc-login-centered .security-note,
.bc-login-centered .login-legal{margin-left:24px;margin-right:24px;}
.bc-login-centered .enterprise-login-form{padding-top:12px;gap:14px;}
.bc-login-centered .field-shell{height:42px;}
.bc-login-centered .enterprise-login-button{height:42px;border-radius:2px;}
.bc-login-centered .security-note{margin-top:18px;background:#faf9f8;}
.bc-login-centered .login-legal{padding:18px 0 20px;margin-top:0;}
@media(max-width:600px){
  .bc-login-centered{padding:16px;}
  .bc-login-centered .login-panel{max-width:100%;}
  .bc-login-centered .login-heading{padding:20px 18px 5px;}
  .bc-login-centered .login-alert,.bc-login-centered .enterprise-login-form,.bc-login-centered .security-note,.bc-login-centered .login-legal{margin-left:18px;margin-right:18px;}
}
