﻿:root {
    --nwe-blue: #1a3a5c;
    --nwe-blue-mid: #1e5799;
    --nwe-blue-light: #e8f0fb;
    --nwe-blue-border: #c5d8f6;
    --nwe-green: #1e6e3a;
    --nwe-green-light: #d4edda;
    --nwe-orange: #b85c00;
    --nwe-orange-light: #fde8cc;
    --nwe-red: #b52b27;
    --nwe-red-light: #fdecea;
    --nwe-border: #dce3ef;
    --nwe-muted: #6b7a99;
    --nwe-text: #1a2b42;
    --nwe-bg: #f0f3f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Calibri Light',Calibri,Arial,sans-serif;
    background: linear-gradient(135deg,#1a3a5c 0%,#1e5799 55%,#2a6080 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-wrap {
    width: 100%;
    max-width: 460px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,.28);
    overflow: hidden;
}
/* Header */
.lh {
    background: var(--nwe-blue);
    padding: 26px 32px 22px;
    text-align: center;
}

.lh-gov {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lh-gov-text {
    text-align: left;
}

    .lh-gov-text .ministry {
        color: #7ec8f7;
        font-size: 11px;
        font-family: 'Calibri Light',sans-serif;
    }

    .lh-gov-text .scheme {
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        font-family: Calibri,sans-serif;
    }

.lh h1 {
    color: #fff;
    font-family: Calibri,Arial,sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.lh p {
    color: #aac4e8;
    font-size: 12px;
    margin: 0;
}
/* Role tabs */
.role-tabs {
    display: flex;
    border-bottom: 2px solid var(--nwe-border);
    margin-bottom: 22px;
}

.role-tab {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    cursor: pointer;
    font-family: Calibri,sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--nwe-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

    .role-tab:hover {
        color: var(--nwe-blue-mid);
        background: var(--nwe-blue-light);
    }

    .role-tab.active {
        color: var(--nwe-blue-mid);
        border-bottom-color: var(--nwe-blue-mid);
        background: var(--nwe-blue-light);
    }
/* Body */
.lb {
    padding: 26px 32px;
}

.field-label {
    font-size: 11px;
    font-weight: 700;
    color: #4a5a78;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 5px;
    display: block;
}

.login-input {
    font-family: 'Calibri Light',sans-serif;
    font-size: 14px;
    border: 1px solid var(--nwe-border);
    border-radius: 5px;
    padding: 10px 12px;
    width: 100%;
    transition: border .15s;
    outline: none;
}

    .login-input:focus {
        border-color: var(--nwe-blue-mid);
        box-shadow: 0 0 0 2px rgba(30,87,153,.1);
    }

.pwd-wrap {
    position: relative;
}

    .pwd-wrap .login-input {
        padding-right: 44px;
    }

.pwd-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.btn-login {
    width: 100%;
    background: var(--nwe-blue-mid);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-family: Calibri,sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-login:hover {
        background: var(--nwe-blue);
    }

    .btn-login:disabled {
        background: #8a9ab5;
        cursor: not-allowed;
    }

.error-box {
    background: var(--nwe-red-light);
    border: 1px solid #f5c6c2;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--nwe-red);
    margin-bottom: 14px;
    display: none;
}

.hint-box {
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hint-nwe {
    background: var(--nwe-blue-light);
    border-left: 3px solid var(--nwe-blue-mid);
    color: var(--nwe-blue);
}

.hint-admin {
    background: var(--nwe-orange-light);
    border-left: 3px solid var(--nwe-orange);
    color: #7a3f00;
}

.chk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--nwe-muted);
}

    .chk-row label {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

    .chk-row a {
        color: var(--nwe-blue-mid);
        text-decoration: none;
    }

        .chk-row a:hover {
            text-decoration: underline;
        }

.role-help {
    font-size: 11px;
    color: var(--nwe-muted);
    text-align: center;
    margin-top: 14px;
}
/* Footer */
.lf {
    background: #f4f6fb;
    padding: 12px 32px;
    text-align: center;
    font-size: 11px;
    color: var(--nwe-muted);
    border-top: 1px solid var(--nwe-border);
}
/* Responsive */
@media(max-width:480px) {
    .lb, .lh {
        padding: 20px;
    }

        .lh h1 {
            font-size: 17px;
        }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
