:root {
    --primary-950: #042f2e;
    --primary-900: #134e4a;
    --primary-800: #115e59;
    --primary-700: #0f766e;
    --primary-600: #0d9488;
    --primary-500: #14b8a6;
    --primary-100: #ccfbf1;
    --primary-50: #f0fdfa;
    --blue-600: #2563eb;
    --slate-950: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --danger-700: #b91c1c;
    --danger-600: #dc2626;
    --danger-100: #fee2e2;
    --danger-50: #fef2f2;
    --success-700: #047857;
    --success-100: #d1fae5;
    --success-50: #ecfdf5;
    --shadow-xl: 0 32px 80px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--slate-100);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--slate-950);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

[hidden] {
    display: none !important;
}

.login-page {
    min-height: 100vh;
    padding: 22px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 8% 10%, rgba(20, 184, 166, 0.13), transparent 26rem),
        radial-gradient(circle at 92% 90%, rgba(37, 99, 235, 0.08), transparent 24rem),
        var(--slate-100);
}

.login-layout {
    width: min(1440px, 100%);
    min-height: min(860px, calc(100vh - 44px));
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.login-presentation {
    position: relative;
    min-height: 760px;
    padding: 42px 48px 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--white);
    isolation: isolate;
    background: linear-gradient(140deg, #042f2e, #0f766e 55%, #0d9488);
}

.login-presentation::after {
    content: "";
    position: absolute;
    inset: auto -10% -32% 20%;
    height: 55%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-8deg);
}

.presentation-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom right, #000, transparent 82%);
}

.presentation-glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(1px);
    pointer-events: none;
}

.presentation-glow-one {
    width: 330px;
    height: 330px;
    top: 18%;
    right: -120px;
    background: rgba(45, 212, 191, 0.16);
}

.presentation-glow-two {
    width: 220px;
    height: 220px;
    bottom: 4%;
    left: -90px;
    background: rgba(96, 165, 250, 0.12);
}

.brand-header,
.presentation-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 34px rgba(4, 47, 46, 0.2);
    backdrop-filter: blur(12px);
}

.brand-mark svg {
    width: 29px;
    height: 29px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(4, 47, 46, 0.24);
    font-size: 12px;
    font-weight: 600;
}

.system-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.12);
}

.presentation-content {
    position: relative;
    z-index: 2;
    width: min(650px, 100%);
    margin: auto 0;
    padding: 60px 0;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.eyebrow svg {
    width: 17px;
    height: 17px;
}

.presentation-content h1 {
    max-width: 640px;
    margin: 22px 0 20px;
    font-size: clamp(40px, 4.5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.presentation-content > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.75;
}

.feature-list {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feature-list article {
    min-height: 144px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.feature-list article > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #99f6e4;
    background: rgba(153, 246, 228, 0.12);
}

.feature-list article svg {
    width: 21px;
    height: 21px;
}

.feature-list article div {
    display: grid;
    gap: 4px;
}

.feature-list strong {
    font-size: 14px;
}

.feature-list small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    line-height: 1.45;
}

.presentation-footer {
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
}

.login-workspace {
    min-width: 0;
    padding: 34px clamp(34px, 5vw, 82px) 28px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0, rgba(20, 184, 166, 0.07), transparent 20rem),
        var(--white);
}

.mobile-brand {
    display: none;
}

.login-card {
    width: min(470px, 100%);
    margin: auto;
}

.login-heading {
    margin-bottom: 30px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 700;
}

.login-heading h2 {
    margin: 16px 0 10px;
    color: var(--slate-950);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.login-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.alert-box {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid var(--danger-100);
    border-radius: var(--radius-md);
    color: var(--danger-700);
    background: var(--danger-50);
    font-size: 13px;
    font-weight: 600;
}

.alert-box.is-success {
    border-color: var(--success-100);
    color: var(--success-700);
    background: var(--success-50);
}

.login-form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-label,
.field-label-row {
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 700;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.help-link {
    padding: 0;
    color: var(--primary-700);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.help-link:hover {
    color: var(--primary-900);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap > svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    z-index: 1;
    color: var(--slate-400);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 50px 0 48px;
    outline: 0;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    color: var(--slate-950);
    background: var(--slate-50);
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder {
    color: var(--slate-400);
}

.input-wrap input:hover {
    border-color: var(--slate-300);
}

.input-wrap input:focus {
    border-color: var(--primary-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.11);
}

.field.has-error .input-wrap input {
    border-color: var(--danger-600);
    background: var(--danger-50);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.password-toggle {
    position: absolute;
    right: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--slate-400);
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary-700);
    background: var(--primary-50);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.field-error,
.caps-lock {
    min-height: 18px;
    color: var(--danger-600);
    font-size: 11px;
    font-weight: 600;
}

.caps-lock {
    color: #b45309;
}

.remember-control {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.remember-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    color: transparent;
    background: var(--white);
    transition: all 160ms ease;
}

.checkmark svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.remember-control input:checked + .checkmark {
    border-color: var(--primary-700);
    color: var(--white);
    background: var(--primary-700);
}

.remember-control input:focus-visible + .checkmark {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.submit-button {
    position: relative;
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border-radius: var(--radius-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.16), transparent 80%);
    transform: translateX(-100%);
    transition: transform 500ms ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.28);
}

.submit-button:hover::before {
    transform: translateX(100%);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18), 0 12px 24px rgba(15, 118, 110, 0.22);
}

.submit-button svg {
    width: 20px;
    height: 20px;
}

.submit-button:disabled {
    cursor: wait;
    filter: saturate(0.7);
    transform: none;
}

.button-loader {
    width: 20px;
    height: 20px;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 720ms linear infinite;
}

.submit-button.is-loading svg {
    display: none;
}

.submit-button.is-loading .button-loader {
    display: block;
}

.security-note {
    margin-top: 24px;
    padding-top: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-top: 1px solid var(--slate-200);
}

.security-note > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--primary-700);
}

.security-note p {
    margin: 0;
    display: grid;
    gap: 3px;
}

.security-note strong {
    color: var(--slate-700);
    font-size: 12px;
}

.security-note span {
    color: var(--slate-400);
    font-size: 11px;
    line-height: 1.5;
}

.workspace-footer {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--slate-400);
    font-size: 10px;
}

.workspace-footer a {
    color: var(--primary-700);
    font-weight: 700;
    text-decoration: none;
}

.workspace-footer a:hover {
    text-decoration: underline;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
    .login-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    }

    .login-presentation {
        padding-inline: 36px;
    }

    .presentation-content h1 {
        font-size: 45px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-list article {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .login-page {
        padding: 0;
        place-items: stretch;
    }

    .login-layout {
        min-height: 100vh;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-presentation {
        display: none;
    }

    .login-workspace {
        min-height: 100vh;
        padding: 26px clamp(22px, 7vw, 58px) 24px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 56px;
    }

    .mobile-brand .brand-mark {
        width: 48px;
        height: 48px;
        border-color: var(--primary-100);
        color: var(--primary-700);
        background: var(--primary-50);
        box-shadow: none;
    }

    .mobile-brand .brand-mark svg {
        width: 26px;
        height: 26px;
    }

    .mobile-brand div {
        display: grid;
        gap: 2px;
    }

    .mobile-brand strong {
        color: var(--slate-800);
        font-size: 14px;
    }

    .mobile-brand small {
        color: var(--slate-400);
        font-size: 11px;
    }

    .login-card {
        margin: 0 auto auto;
    }

    .workspace-footer {
        margin-top: 52px;
    }
}

@media (max-width: 560px) {
    .login-workspace {
        padding-inline: 20px;
    }

    .mobile-brand {
        margin-bottom: 42px;
    }

    .login-heading {
        margin-bottom: 26px;
    }

    .login-heading h2 {
        font-size: 31px;
    }

    .input-wrap input {
        height: 52px;
    }

    .workspace-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.login-language{position:absolute;top:25px;right:28px;z-index:5;padding:4px;display:flex;gap:3px;border:1px solid var(--slate-200);border-radius:10px;background:var(--white)}.login-language a{padding:6px 9px;border-radius:7px;color:var(--slate-500);font-size:10px;font-weight:800;text-decoration:none}.login-language a.active{color:var(--primary-800);background:var(--primary-50)}.login-workspace{position:relative}
@media(max-width:720px){.login-language{top:14px;right:16px}}

.workspace-footer a {
    color: var(--primary-700);
    font-weight: 700;
    text-decoration: none;
}

.workspace-footer a:hover {
    text-decoration: underline;
}


/* v5 citizen portal authentication */
.brand-logo{object-fit:contain;padding:5px}.auth-switch{margin-top:17px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--slate-200);border-radius:12px;background:var(--slate-50);color:var(--slate-500);font-size:10px}.auth-switch a{color:var(--primary-700);font-weight:850;white-space:nowrap}.auth-switch a:hover{text-decoration:underline}.register-workspace{padding-top:62px;padding-bottom:26px;overflow:auto}.register-card{max-width:560px}.register-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.register-form>.field:nth-of-type(1),.register-form>.field:nth-of-type(2),.register-form>.field:nth-of-type(3),.register-password-grid,.register-consent,.register-form>.submit-button{grid-column:1/-1}.register-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.register-consent{padding:12px 13px;display:flex;align-items:flex-start;gap:9px;border:1px solid var(--primary-100);border-radius:11px;color:var(--slate-600);background:var(--primary-50);font-size:9px;line-height:1.55}.register-consent svg{width:17px;height:17px;flex:0 0 auto;color:var(--primary-700)}.register-alert{margin-bottom:17px}.field-error.visible{display:block;color:var(--red-600,#dc2626)}
@media(max-width:860px){.register-workspace{padding-top:70px}.register-card{max-width:640px}.register-form{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.register-workspace{padding-top:62px}.register-form,.register-password-grid{grid-template-columns:1fr}.register-form>*{grid-column:auto!important}.auth-switch{align-items:flex-start;flex-direction:column}.register-card{max-width:none}}
