﻿.identity-body {
    margin: 0;
    background: #f4f7f6;
    color: #243a3e;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.identity-body *, .identity-body *::before, .identity-body *::after { box-sizing: border-box; }
.identity-body a { color: #17695b; text-decoration: none; }
.identity-body a:hover { color: #0d493f; }
.identity-body button, .identity-body input { font: inherit; }
.identity-body button, .identity-body a, .identity-body input { -webkit-tap-highlight-color: transparent; }
.identity-body :focus-visible { outline: 3px solid #85bfb1; outline-offset: 3px; }
.identity-body h1, .identity-body h2, .identity-body p { margin: 0; }
.identity-body h1 { color: #183f3d; font-size: 27px; font-weight: 650; line-height: 1.25; letter-spacing: -.5px; }
.identity-body h2 { color: #183f3d; font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.25px; }
.identity-body strong { font-weight: 600; }
.identity-header { background: #fff; border-bottom: 1px solid #dfe8e4; }
.identity-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; min-height: 66px; margin: 0 auto; padding: 10px 22px; }
.identity-brand { display: inline-flex; align-items: center; gap: 9px; color: #173e3a !important; font-size: 18px; white-space: nowrap; }
.identity-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 9px; background: #175b4f; color: #fff; font-size: 21px; font-weight: 700; }
.identity-account-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.identity-account-menu a, .identity-menu-button { display: inline-block; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: none; color: #46645e; line-height: 1.35; text-decoration: none; }
.identity-account-menu a:hover { background: #f0f6f3; color: #164d41; }
.identity-menu-button { border-color: #ceddd6; color: #24594c; font: inherit; cursor: pointer; }
.identity-menu-button:hover { background: #edf5f0; }
.identity-menu-caption { color: #677b76; font-size: 12px; }
.identity-inline-form { display: inline-block; margin: 0; }
.identity-content { max-width: 1160px; min-height: calc(100vh - 124px); margin: 0 auto; padding: 24px 22px; }
.identity-footer { padding: 12px 20px; color: #677b76; font-size: 12px; text-align: center; }
.identity-footer span { margin: 0 6px; }
.identity-eyebrow { margin-bottom: 5px !important; color: #42796c; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.identity-muted { margin-top: 7px !important; color: #60746e; }
.identity-lead { margin-top: 9px !important; font-size: 16px; }
.identity-label { display: block; margin-bottom: 5px; color: #63776f; font-size: 11px; font-weight: 600; }
.identity-card { padding: 22px; border: 1px solid #dce6e0; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(23, 60, 47, .025); }
.identity-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.identity-narrow { max-width: 530px; margin: 12px auto; }
.identity-form-card { max-width: 680px; margin: 6px auto; }
.identity-form { margin-top: 20px; }
.identity-field { margin-bottom: 13px; }
.identity-field label, .identity-fieldset legend { display: block; margin-bottom: 5px; color: #2e4d43; font-size: 13px; font-weight: 600; }
.identity-field input, .identity-search-form input { display: block; width: 100%; max-width: none; height: 39px; padding: 8px 10px; border: 1px solid #bdcec5; border-radius: 6px; background: #fff; color: #203d33; line-height: 1.35; transition: border-color .12s, box-shadow .12s; }
.identity-field input:hover, .identity-search-form input:hover { border-color: #8ea99c; }
.identity-field input:focus, .identity-search-form input:focus { border-color: #317c64; outline: 0; box-shadow: 0 0 0 3px rgba(49, 124, 100, .13); }
.identity-field input.input-validation-error { border-color: #bc5149; }
.identity-field-help { display: block; margin-top: 5px !important; color: #64776d; font-size: 12px; }
.identity-form-note { margin-top: 17px !important; padding-top: 13px; border-top: 1px solid #e6ece8; color: #64776d; font-size: 12px; }
.identity-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.identity-fieldset { min-width: 0; margin: 5px 0 16px; padding: 0; border: 0; }
.identity-fieldset legend { float: none; width: auto; padding: 0; }
.identity-checkbox-line { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 13px; }
.identity-checkbox-line input[type="checkbox"], .identity-role-choice input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: #1b6955; }
.identity-checkbox-line label { cursor: pointer; }
.identity-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s; }
.identity-button-primary { border-color: #1b6552; background: #1b6552; color: #fff !important; }
.identity-button-primary:hover { border-color: #124b3c; background: #124b3c; }
.identity-button-secondary { border-color: #c7d7cd; background: #fff; color: #325c48 !important; }
.identity-button-secondary:hover { border-color: #9db8a8; background: #f1f7f3; }
.identity-button-full { width: 100%; }
.identity-button-small { min-height: 31px; padding: 6px 9px; font-size: 12px; }
.identity-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.identity-text-link { font-size: 13px; font-weight: 600; }
.identity-login { display: flex; align-items: stretch; max-width: 860px; margin: 34px auto; border-radius: 13px; box-shadow: 0 8px 30px rgba(24, 60, 44, .05); }
.identity-login-intro { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 34px; border-radius: 13px 0 0 13px; background: #184e42; color: #d6e8dd; }
.identity-login-intro .identity-eyebrow { margin-bottom: 13px !important; color: #b4d3c3; }
.identity-login-intro h2 { color: #fff; font-size: 32px; line-height: 1.2; letter-spacing: -.6px; }
.identity-login-intro > p:not(.identity-eyebrow) { margin-top: 15px; color: #d3e3d9; font-size: 14px; line-height: 1.65; }
.identity-login-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); color: #c0d8c9; font-size: 12px; }
.identity-login-form { flex: 0 0 420px; padding: 30px; border-left: 0; border-radius: 0 13px 13px 0; }
.identity-login-form .identity-form { margin-top: 22px; }
.identity-login-form h1 { font-size: 22px; }
.identity-alert, .identity-validation.validation-summary-errors { margin: 0 0 14px; padding: 11px 13px; border: 1px solid; border-radius: 7px; font-size: 13px; }
.identity-alert-success { border-color: #bed9c7; background: #edf8ef; color: #285b39; }
.identity-alert-error { border-color: #e5c4bf; background: #fff3f1; color: #9b3e32; }
.identity-alert-info { border-color: #d0dfdf; background: #f1f7f7; color: #3b6161; }
.identity-validation.validation-summary-errors { border-color: #e5c4bf; background: #fff3f1; color: #9b3e32; }
.identity-validation ul { margin: 0; padding-left: 17px; }
.identity-validation ul li:only-child { list-style: none; margin-left: -17px; }
.identity-validation.validation-summary-valid, .identity-body .field-validation-valid { display: none; }
.identity-body .field-validation-error { display: block; margin-top: 4px; color: #a13d30; font-size: 12px; }
.identity-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.identity-role-choice { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 10px 11px; border: 1px solid #d5e1d9; border-radius: 7px; background: #fbfdfb; font-size: 13px; cursor: pointer; }
.identity-role-choice:hover { border-color: #8daf99; background: #f2f8f3; }
.identity-role-choice input:checked + span { color: #1a6143; font-weight: 600; }
.identity-account-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 15px 18px; }
.identity-account-name { display: block; color: #244c39; overflow-wrap: anywhere; }
.identity-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.identity-tag { display: inline-block; padding: 3px 7px; border: 1px solid #d4e6da; border-radius: 5px; background: #edf6ef; color: #306342; font-size: 11px; line-height: 1.4; }
.identity-tag-muted { border-color: #e0e5e2; background: #f4f6f4; color: #627068; }
.identity-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.identity-feature-card { display: block; position: relative; padding: 20px; color: #354e40 !important; }
.identity-feature-card:hover { border-color: #8bac99; box-shadow: 0 3px 12px rgba(25, 64, 40, .06); }
.identity-feature-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 31px; margin-bottom: 12px; border: 1px solid #d6e4da; border-radius: 7px; background: #f0f6f1; color: #477b53; font-size: 11px; font-weight: 700; }
.identity-feature-card h2 { font-size: 18px; }
.identity-feature-card p { margin-top: 6px; color: #68796c; font-size: 13px; }
.identity-feature-link { display: inline-block; margin-top: 15px; color: #1f6945; font-size: 12px; font-weight: 600; }
.identity-feature-link span { margin-left: 4px; }
.identity-table-card { overflow: hidden; padding: 0; }
.identity-table-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e0e8e2; }
.identity-search-form { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; max-width: 100%; margin: 0; }
.identity-search-form input { width: 285px; height: 37px; }
.identity-search-form .identity-button { min-height: 37px; }
.identity-result-count { color: #607467; font-size: 12px; white-space: nowrap; }
.identity-table-scroll { overflow-x: auto; }
.identity-table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 13px; }
.identity-table th { padding: 10px 16px; border-bottom: 1px solid #dbe6de; background: #f2f6f2; color: #4a6853; font-size: 11px; font-weight: 650; text-align: left; white-space: nowrap; }
.identity-table td { padding: 12px 16px; border-bottom: 1px solid #e8eee8; vertical-align: middle; }
.identity-table tbody tr:last-child td { border-bottom: 0; }
.identity-table tbody tr:hover { background: #fbfdfb; }
.identity-user-email { display: block; max-width: 300px; color: #274b33; overflow-wrap: anywhere; }
.identity-table-secondary { display: block; margin-top: 3px; color: #61735f; font-size: 11px; }
.identity-table-actions { text-align: right !important; }
.identity-row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.identity-row-actions .identity-button { white-space: nowrap; }
.identity-state { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.identity-state-success { background: #edf5ee; color: #3c6c46; }
.identity-state-warning { background: #fff0d6; color: #926310; }
.identity-empty { padding: 32px 16px !important; text-align: center; }
.identity-empty strong { display: block; color: #385a40; }
.identity-empty span { display: block; margin-top: 4px; color: #61735f; font-size: 12px; }
.identity-table-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #e2e9e2; color: #667766; font-size: 12px; }
.identity-pagination { display: flex; align-items: center; gap: 9px; }
.identity-denied { margin-top: 40px; padding: 28px; text-align: center; }
.identity-denied .identity-actions { justify-content: center; }
.identity-status-code { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border: 1px solid #e2d7bf; border-radius: 7px; background: #faf4e8; color: #94713b; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.identity-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.identity-skip-link { position: absolute; top: -60px; left: 12px; z-index: 20; padding: 8px 12px; border: 1px solid #2c7350; border-radius: 4px; background: #fff; }
.identity-skip-link:focus { top: 10px; }
@media (max-width: 760px) {
    .identity-header-inner { padding: 10px 16px; }
    .identity-content { padding: 20px 16px; }
    .identity-account-menu { gap: 2px; }
    .identity-account-menu a, .identity-menu-button { padding: 7px 8px; }
    .identity-login { max-width: 470px; margin: 12px auto; }
    .identity-login-intro { display: none; }
    .identity-login-form { flex: 1; padding: 25px; border: 1px solid #dce6e0; border-radius: 11px; }
    .identity-feature-card { padding: 17px; }
}
@media (max-width: 520px) {
    .identity-body h1 { font-size: 24px; }
    .identity-header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .identity-account-menu { width: 100%; }
    .identity-brand { font-size: 17px; }
    .identity-brand-mark { width: 30px; height: 30px; }
    .identity-content { padding: 17px 12px; }
    .identity-card { padding: 18px; }
    .identity-login-form { padding: 22px 19px; }
    .identity-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .identity-form-grid, .identity-portal-grid { grid-template-columns: 1fr; }
    .identity-role-grid { gap: 7px; }
    .identity-role-choice { padding: 10px 8px; font-size: 12px; }
    .identity-field input, .identity-search-form input { min-height: 42px; font-size: 16px; }
    .identity-button { min-height: 41px; }
    .identity-button-small { min-height: 34px; }
    .identity-table-card { padding: 0; }
    .identity-table-toolbar { padding: 12px; }
    .identity-search-form { width: 100%; }
    .identity-search-form input { flex: 1; width: 0; min-width: 130px; }
    .identity-search-form .identity-button { min-height: 42px; }
    .identity-table-footer { padding: 11px 12px; }
    .identity-narrow, .identity-form-card { margin-top: 3px; }
    .identity-account-summary { align-items: flex-start; flex-direction: column; }
    .identity-denied { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .identity-body *, .identity-body *::before, .identity-body *::after { transition: none !important; }
}

/* =========================================================
   AlphaTech MIS - Premium Login Experience
   ========================================================= */

.identity-login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 40px;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(36, 113, 91, .09), transparent 32%), radial-gradient(circle at 90% 90%, rgba(31, 89, 74, .07), transparent 30%), #f3f6f4;
}

    /* Main login container */

    .identity-login-page .identity-shell {
        width: 100%;
        max-width: 1120px;
        margin: auto;
    }

    .identity-login-page .identity-login {
        position: relative;
        display: flex;
        width: 100%;
        max-width: 1120px;
        min-height: 650px;
        margin: 0 auto;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.8);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 30px 80px rgba(20, 52, 42, .12), 0 5px 20px rgba(20, 52, 42, .04);
    }

    /* Left branding panel */

    .identity-login-page .identity-login-intro {
        position: relative;
        isolation: isolate;
        flex: 1;
        justify-content: center;
        padding: 65px 58px;
        overflow: hidden;
        border-radius: 0;
        background: radial-gradient(circle at 85% 15%, rgba(111, 180, 143, .23), transparent 32%), linear-gradient(145deg, #123d34 0%, #175747 52%, #103a31 100%);
        color: #fff;
    }

        /* Decorative background circles */

        .identity-login-page .identity-login-intro::before {
            content: "";
            position: absolute;
            z-index: -1;
            width: 390px;
            height: 390px;
            right: -170px;
            bottom: -145px;
            border: 1px solid rgba(255,255,255,.13);
            border-radius: 50%;
            box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.025), 0 0 0 115px rgba(255,255,255,.018);
        }

        .identity-login-page .identity-login-intro::after {
            content: "";
            position: absolute;
            z-index: -1;
            width: 150px;
            height: 150px;
            top: 45px;
            right: 45px;
            border: 1px solid rgba(255,255,255,.09);
            border-radius: 50%;
        }

        .identity-login-page .identity-login-intro .identity-eyebrow {
            color: #a9d8bd;
            font-size: 12px;
            letter-spacing: 3px;
            margin-bottom: 22px !important;
        }

        .identity-login-page .identity-login-intro h2 {
            max-width: 440px;
            color: #fff;
            font-size: clamp(34px, 4vw, 47px);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -1.4px;
        }

        .identity-login-page .identity-login-intro > p:not(.identity-eyebrow) {
            max-width: 390px;
            margin-top: 22px;
            color: #d0e3d8;
            font-size: 15px;
            line-height: 1.9;
        }

    .identity-login-page .identity-login-note {
        max-width: 390px;
        margin-top: 55px;
        padding: 18px 20px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 12px;
        background: rgba(255,255,255,.07);
        color: #d3e7dc;
        font-size: 13px;
        line-height: 1.7;
        backdrop-filter: blur(8px);
    }

    /* Right login panel */

    .identity-login-page .identity-login-form {
        display: flex;
        flex: 0 0 480px;
        flex-direction: column;
        justify-content: center;
        padding: 65px 52px;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

        .identity-login-page .identity-login-form .identity-eyebrow {
            color: #268066;
            font-size: 11px;
            letter-spacing: 2px;
            margin-bottom: 12px !important;
        }

        .identity-login-page .identity-login-form h1 {
            color: #193c32;
            font-size: 29px;
            font-weight: 750;
            line-height: 1.3;
            letter-spacing: -.8px;
        }

        .identity-login-page .identity-login-form .identity-muted {
            margin-top: 10px !important;
            color: #81918a;
            font-size: 13px;
        }

        /* Form fields */

        .identity-login-page .identity-login-form .identity-form {
            margin-top: 34px;
        }

    .identity-login-page .identity-field {
        margin-bottom: 23px;
    }

        .identity-login-page .identity-field label {
            margin-bottom: 9px;
            color: #304d42;
            font-size: 13px;
            font-weight: 650;
        }

        .identity-login-page .identity-field input {
            width: 100%;
            height: 51px;
            padding: 12px 15px;
            border: 1px solid #dce6e0;
            border-radius: 9px;
            background: #f9fbfa;
            color: #193c32;
            font-size: 14px;
            transition: all .2s ease;
        }

            .identity-login-page .identity-field input::placeholder {
                color: #a5b1aa;
            }

            .identity-login-page .identity-field input:hover {
                border-color: #a9c5b6;
                background: #fff;
            }

            .identity-login-page .identity-field input:focus {
                border-color: #268066;
                outline: none;
                background: #fff;
                box-shadow: 0 0 0 4px rgba(38,128,102,.10);
            }

    /* Remember me */

    .identity-login-page .identity-checkbox-line {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 3px 0 27px;
        color: #60766b;
        font-size: 13px;
    }

        .identity-login-page .identity-checkbox-line input {
            width: 16px;
            height: 16px;
            accent-color: #23765e;
            cursor: pointer;
        }

        .identity-login-page .identity-checkbox-line label {
            cursor: pointer;
        }

    /* Login button */

    .identity-login-page .identity-button-primary {
        min-height: 52px;
        border: 0;
        border-radius: 9px;
        background: linear-gradient(110deg, #17644f, #25866a);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .3px;
        box-shadow: 0 7px 18px rgba(28, 112, 84, .19);
        transition: all .2s ease;
    }

        .identity-login-page .identity-button-primary:hover {
            background: linear-gradient(110deg, #124d3e, #1b7057);
            box-shadow: 0 10px 23px rgba(28, 112, 84, .25);
            transform: translateY(-2px);
        }

        .identity-login-page .identity-button-primary:active {
            transform: translateY(0);
        }

    /* Footer note */

    .identity-login-page .identity-form-note {
        margin-top: 28px !important;
        padding-top: 20px;
        border-top: 1px solid #edf1ee;
        color: #84938b;
        font-size: 12px;
        line-height: 1.8;
        text-align: center;
    }

    /* Validation and alerts */

    .identity-login-page .identity-alert,
    .identity-login-page .identity-validation.validation-summary-errors {
        margin-top: 18px;
        border-radius: 9px;
    }

/* Responsive design */

@media (max-width: 900px) {
    .identity-login-page {
        padding: 25px;
    }

        .identity-login-page .identity-login {
            min-height: 580px;
        }

        .identity-login-page .identity-login-intro {
            padding: 40px 30px;
        }

        .identity-login-page .identity-login-form {
            flex: 0 0 420px;
            padding: 40px 32px;
        }
}

@media (max-width: 760px) {
    .identity-login-page {
        padding: 20px;
    }

        .identity-login-page .identity-login {
            max-width: 480px;
            min-height: auto;
            border-radius: 20px;
        }

        .identity-login-page .identity-login-intro {
            display: none;
        }

        .identity-login-page .identity-login-form {
            flex: 1;
            padding: 42px 35px;
            border-radius: 20px;
        }
}

@media (max-width: 480px) {
    .identity-login-page {
        padding: 14px;
    }

        .identity-login-page .identity-login-form {
            padding: 35px 23px;
        }

            .identity-login-page .identity-login-form h1 {
                font-size: 25px;
            }

        .identity-login-page .identity-field input {
            height: 48px;
            font-size: 16px;
        }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .identity-login-page *,
    .identity-login-page *::before,
    .identity-login-page *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* Fix login page vertical scrolling */
.identity-login-page {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    padding: 20px;
    overflow: hidden;
}

    .identity-login-page .identity-shell {
        width: 100%;
        max-width: 1120px;
        max-height: 100%;
    }

    .identity-login-page .identity-login {
        min-height: 0;
        height: min(650px, calc(100svh - 40px));
        max-height: 100%;
        margin: 0 auto;
    }

    .identity-login-page .identity-login-intro,
    .identity-login-page .identity-login-form {
        min-height: 0;
    }

/* Smaller screens */
@media (max-width: 760px) {
    .identity-login-page {
        padding: 15px;
    }

        .identity-login-page .identity-login {
            height: auto;
            max-height: calc(100svh - 30px);
            overflow-y: auto;
        }

        .identity-login-page .identity-login-form {
            padding: 30px;
        }
}


