/* ISPERP Login Page — JBRSOFT brand palette
   Blues from https://jbrsoft.com / JBRSOFT logo:
   #3581d8, #2b57bf, #255bb1, #1a3e8e, #0d1b3e
*/

html,
body.login-page {
    height: 100%;
    margin: 0;
}

body.login-page {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1a2744;
    background: #2b57bf;
    background: linear-gradient(145deg, #1f4aa8 0%, #2b57bf 42%, #3d78d4 72%, #5a96e6 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.login-page::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.18) 0, transparent 32%),
        radial-gradient(circle at 86% 82%, rgba(200, 224, 255, 0.22) 0, transparent 36%),
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.login-page .due-notice {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 10px 16px;
    background: #fff3cd;
    color: #856404;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #ffe08a;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.login-main {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 44px 16px 40px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    -webkit-box-shadow: 0 20px 50px rgba(10, 20, 44, 0.35);
    box-shadow: 0 20px 50px rgba(10, 20, 44, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.login-card-header {
    background: #1a3e8e;
    background: linear-gradient(135deg, #1a3e8e 0%, #2b57bf 55%, #3581d8 100%);
    color: #fff;
    padding: 28px 28px 24px;
    text-align: center;
    position: relative;
}

.login-card-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #255bb1;
    background: linear-gradient(90deg, #1a3e8e, #3581d8, #2b57bf);
}

.login-brand-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 12px rgba(10, 30, 80, 0.18);
    box-shadow: 0 4px 12px rgba(10, 30, 80, 0.18);
}

.login-brand-mark img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.login-brand-mark .glyphicon {
    font-size: 24px;
    color: #fff;
    top: 0;
}

.login-company-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    color: #fff;
}

.login-company-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.login-card-body {
    padding: 28px 28px 32px;
}

.login-welcome {
    margin: 0 0 22px;
    text-align: center;
    font-size: 15px;
    color: #5d6f8d;
    line-height: 1.5;
}

.login-alert {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    font-size: 13px;
    text-align: center;
}

.login-alert-suspend {
    background: #fff4e5;
    border-color: #ffcc80;
    color: #e65100;
}

.login-page .form-group {
    margin-bottom: 16px;
}

.login-page .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
}

.login-page .input-group-addon {
    background: #f3f6fc;
    border-color: #d5deee;
    color: #2b57bf;
    min-width: 42px;
}

.login-page .form-control {
    height: 44px;
    border-color: #d5deee;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    color: #1a2744;
    padding-left: 12px;
}

.login-page .form-control:focus {
    border-color: #2b57bf;
    -webkit-box-shadow: 0 0 0 3px rgba(43, 87, 191, 0.18);
    box-shadow: 0 0 0 3px rgba(43, 87, 191, 0.18);
}

.login-page .login-password-group .form-control {
    border-right: 0;
}

.login-page .login-password-toggle {
    height: 44px;
    padding: 0 14px;
    border-color: #d5deee;
    background: #f3f6fc;
    color: #2b57bf;
    border-radius: 0 4px 4px 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.login-page .login-password-toggle:hover,
.login-page .login-password-toggle:focus {
    background: #e8eef8;
    border-color: #2b57bf;
    color: #1a3e8e;
    outline: none;
}

.login-page .login-password-group .form-control:focus + .input-group-btn .login-password-toggle {
    border-color: #2b57bf;
}

.login-page .btn-login {
    margin-top: 8px;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 0;
    border-radius: 8px;
    background: #2b57bf;
    background: linear-gradient(135deg, #3581d8 0%, #2b57bf 48%, #1a3e8e 100%);
    color: #fff;
    -webkit-transition: -webkit-transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    -webkit-box-shadow: 0 8px 18px rgba(26, 62, 142, 0.35);
    box-shadow: 0 8px 18px rgba(26, 62, 142, 0.35);
}

.login-page .btn-login:hover,
.login-page .btn-login:focus {
    background: #1a3e8e;
    background: linear-gradient(135deg, #2b57bf 0%, #1a3e8e 100%);
    color: #fff;
    outline: none;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 10px 22px rgba(26, 62, 142, 0.42);
    box-shadow: 0 10px 22px rgba(26, 62, 142, 0.42);
}

.login-page .btn-login:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* Footer — branded redesign */
.login-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    left: 0;
    right: 0;
    background: #183a86;
    background: linear-gradient(180deg, #1f4aa8 0%, #183a86 100%);
    border-top: 0;
    padding: 0;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.login-footer::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #1a3e8e 0%, #3581d8 50%, #2b57bf 100%);
}

.login-footer-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 20px 20px;
}

.login-footer-brand {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 12px;
    -webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.login-footer-brand:hover,
.login-footer-brand:focus {
    text-decoration: none;
    opacity: 0.92;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.login-footer-brand img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.login-footer-meta {
    margin: 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(53, 129, 216, 0.28);
    max-width: 100%;
    width: 100%;
}

.login-footer-tagline {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8eb6ef;
    font-weight: 600;
}

.login-footer-copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.login-footer-copy a {
    color: #9ec4f5;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.login-footer-copy a:hover {
    color: #c8ddfb;
    text-decoration: underline;
}

.login-help-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #2b57bf;
}
.login-help-link:hover,
.login-help-link:focus {
    color: #1a3e8e;
    text-decoration: none;
}
.login-support {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f3f7fd;
    border: 1px solid #d5e4f8;
    border-radius: 10px;
    color: #1a2744;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.login-alert-ok {
    background: #e8f6ee;
    color: #1e7e46;
    border: 1px solid #b7e0c6;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    text-align: center;
}
.login-ssl {
    display: block;
    max-width: 420px;
    width: 90%;
    height: auto;
    margin: 18px auto 0;
}

@media (max-width: 480px) {
    .login-footer-copy {
        white-space: normal;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .login-main {
        padding: 28px 12px 32px;
    }

    .login-card-header,
    .login-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .login-company-name {
        font-size: 20px;
    }

    .login-footer-brand img {
        height: 42px;
    }

    .login-footer-inner {
        padding: 18px 16px 16px;
    }
}
