:root {
    --iqa-navy: #071f42;
    --iqa-deep-blue: #0b3266;
    --iqa-blue: #176fb3;
    --iqa-bright-blue: #2d8fd0;
    --iqa-teal: #21a5a5;
    --iqa-pale-blue: #eaf6fd;
    --iqa-page: #f4f8fc;
    --iqa-text: #17283f;
    --iqa-muted: #68778b;
    --iqa-line: #dbe6ef;
    --iqa-white: #ffffff;
    --iqa-warning-bg: #fff8e5;
    --iqa-warning-text: #775b10;
    --iqa-warning-line: #efd995;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--iqa-text);
    background: var(--iqa-page);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
.login-page {
    display: grid;
    grid-template-columns: minmax(480px, 1.08fr) minmax(430px, .92fr);
    min-height: 100vh;
}

.login-introduction {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(42px, 6vw, 82px);
    overflow: hidden;
    color: var(--iqa-white);
    background:
        linear-gradient(145deg, rgba(7, 31, 66, .98), rgba(11, 50, 102, .96) 58%, rgba(20, 103, 159, .94));
}

.login-introduction::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.login-pattern {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}
.pattern-one {
    top: -230px;
    right: -190px;
    width: 560px;
    height: 560px;
    box-shadow: inset 0 0 0 70px rgba(45, 143, 208, .06), inset 0 0 0 140px rgba(33, 165, 165, .04);
}
.pattern-two {
    bottom: -260px;
    left: -180px;
    width: 500px;
    height: 500px;
    border-color: rgba(33,165,165,.28);
}

.introduction-content,
.introduction-footer { position: relative; z-index: 2; }
.organisation-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ccecff;
}
.organisation-name::before {
    width: 28px;
    height: 2px;
    content: "";
    background: var(--iqa-teal);
    border-radius: 999px;
}

.login-introduction h1 {
    max-width: 660px;
    margin: 28px 0 18px;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.introduction-text {
    max-width: 670px;
    margin: 0;
    color: rgba(235, 247, 255, .78);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin-top: 40px;
}
.portal-feature {
    display: flex;
    gap: 13px;
    min-height: 96px;
    padding: 17px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    backdrop-filter: blur(8px);
}
.feature-number {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #d7fbff;
    font-size: 10px;
    font-weight: 900;
    background: rgba(33,165,165,.18);
    border: 1px solid rgba(96,223,220,.28);
    border-radius: 10px;
}
.portal-feature strong {
    display: block;
    margin: 2px 0 6px;
    font-size: 13px;
}
.portal-feature small {
    color: rgba(232,246,255,.68);
    font-size: 11px;
    line-height: 1.45;
}
.introduction-footer {
    color: rgba(222,240,251,.52);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-form-area {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(24px, 5vw, 64px);
    background:
        radial-gradient(circle at 90% 5%, rgba(45,143,208,.12), transparent 26%),
        radial-gradient(circle at 0 100%, rgba(33,165,165,.09), transparent 30%),
        var(--iqa-page);
}
.login-card {
    width: min(440px, 100%);
    padding: clamp(27px, 4vw, 42px);
    background: var(--iqa-white);
    border: 1px solid var(--iqa-line);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(7, 31, 66, .12);
}
.login-logo {
    display: inline-flex;
    max-width: 180px;
}
.login-logo img {
    display: block;
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}
.login-heading { margin: 31px 0 25px; }
.login-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--iqa-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.login-heading h2 {
    margin: 0;
    color: var(--iqa-navy);
    font-size: 30px;
    letter-spacing: -.025em;
}
.login-heading p {
    margin: 8px 0 0;
    color: var(--iqa-muted);
    font-size: 14px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 13px;
    color: var(--iqa-warning-text);
    font-size: 12px;
    line-height: 1.5;
    background: var(--iqa-warning-bg);
    border: 1px solid var(--iqa-warning-line);
    border-radius: 11px;
}
.login-alert svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: currentColor;
}
.login-form label {
    display: block;
    margin-bottom: 18px;
}
.login-form label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--iqa-deep-blue);
    font-size: 12px;
    font-weight: 800;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap > svg {
    position: absolute;
    left: 13px;
    width: 19px;
    height: 19px;
    fill: #7e91a7;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    min-height: 50px;
    padding: 12px 52px 12px 43px;
    color: var(--iqa-text);
    outline: none;
    background: #fbfdff;
    border: 1px solid #cfdce7;
    border-radius: 11px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-wrap input::placeholder { color: #99a7b5; }
.input-wrap input:focus {
    background: #fff;
    border-color: var(--iqa-bright-blue);
    box-shadow: 0 0 0 4px rgba(45,143,208,.13);
}
.password-toggle {
    position: absolute;
    right: 8px;
    min-width: 42px;
    padding: 7px 8px;
    color: var(--iqa-blue);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 7px;
}
.password-toggle:hover { background: var(--iqa-pale-blue); }
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 51px;
    gap: 9px;
    margin-top: 4px;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(100deg, var(--iqa-deep-blue), var(--iqa-blue));
    border: 0;
    border-radius: 11px;
    box-shadow: 0 11px 24px rgba(23,111,179,.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(23,111,179,.28);
}
.login-button:active { transform: translateY(0); }
.login-button svg { width: 20px; height: 20px; fill: currentColor; }
.login-security {
    margin: 22px 0 0;
    padding-top: 18px;
    color: var(--iqa-muted);
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
    border-top: 1px solid #edf2f6;
}

@media (max-width: 960px) {
    .login-page { grid-template-columns: 1fr; }
    .login-introduction { display: none; }
    .login-form-area { min-height: 100vh; }
}
@media (max-width: 520px) {
    .login-form-area { padding: 16px; }
    .login-card { padding: 26px 21px; border-radius: 17px; }
    .login-heading h2 { font-size: 27px; }
}
