/* KMSIT Mail Premium Dark - login page only */

body.task-login {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0, 111, 255, .22), transparent 45%),
        radial-gradient(ellipse at 90% 90%, rgba(0, 80, 200, .24), transparent 45%),
        linear-gradient(135deg, #020817 0%, #07162d 55%, #0b2146 100%) !important;
    color: #f4f7ff;
}

body.task-login #layout-content {
    background: transparent !important;
}

body.task-login #login-form {
    background: linear-gradient(145deg, rgba(18, 42, 81, .94), rgba(5, 18, 41, .96));
    border: 1px solid rgba(53, 151, 255, .45);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    padding: 44px 38px;
    color: #f4f7ff;
}

body.task-login #login-form input {
    background: rgba(3, 15, 36, .75);
    border: 1px solid rgba(106, 157, 220, .35);
    border-radius: 12px;
    color: #fff;
}

body.task-login #login-form input:focus {
    border-color: #1688ff;
    box-shadow: 0 0 0 3px rgba(22, 136, 255, .2);
}

body.task-login #login-form button {
    border-radius: 12px;
    background: linear-gradient(135deg, #189bff, #0755e9);
    border: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 112, 255, .25);
}

body.task-login #login-footer {
    color: #a7b8d6;
}

@media (max-width: 768px) {
    body.task-login #login-form {
        padding: 28px 22px;
        border-radius: 20px;
    }
}

/* Premium Dark two-column layout */

body.task-login #layout {
    min-height: 100vh;
}

body.task-login #layout-content.kmsit-login-layout {
    display: grid !important;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    text-align: left;
    overflow: auto;
}

.kmsit-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 8%;
    background:
        radial-gradient(circle at 25% 75%, rgba(0, 130, 255, .22), transparent 45%),
        linear-gradient(145deg, #020817, #071a38);
    border-right: 1px solid rgba(86, 160, 255, .15);
}

.kmsit-brand-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kmsit-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #399dff;
    border-radius: 14px;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 130, 255, .25);
}

.kmsit-brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2px;
}

.kmsit-brand-caption {
    font-size: 10px;
    color: #8baad3;
    letter-spacing: 3px;
}

.kmsit-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    color: #49adff;
    font-weight: 700;
}

.kmsit-brand-content h2 {
    font-size: clamp(50px, 6vw, 100px);
    font-weight: 900;
    letter-spacing: -3px;
    margin: 18px 0;
    color: #fff;
}

.kmsit-brand-content h2 span {
    color: #249dff;
}

.kmsit-brand-description {
    max-width: 500px;
    color: #afc1de;
    font-size: 18px;
    line-height: 1.8;
}

.kmsit-brand-features {
    display: grid;
    gap: 18px;
    margin-top: 42px;
    color: #d7e6ff;
    font-size: 14px;
}

.kmsit-brand-bottom {
    color: #6985ab;
    font-size: 12px;
}

.kmsit-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #061226, #0a1b36);
}

.kmsit-login-card {
    width: 100%;
    max-width: 470px;
    padding: 48px;
    background: rgba(14, 33, 64, .72);
    border: 1px solid rgba(90, 159, 255, .28);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    color: #fff;
}

.kmsit-login-icon {
    font-size: 32px;
    color: #3ba6ff;
    margin-bottom: 18px;
}

.kmsit-login-card h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.kmsit-login-subtitle {
    color: #9fb4d4;
    margin-bottom: 24px;
}

body.task-login .kmsit-login-card #login-form {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.task-login #login-form label {
    color: #d7e6ff;
}

body.task-login #login-form input {
    min-height: 46px;
}

body.task-login #login-form button {
    min-height: 48px;
    width: 100%;
}

.kmsit-login-security {
    margin-top: 28px;
    text-align: center;
    color: #83a3ce;
    font-size: 12px;
}

@media (max-width: 900px) {
    body.task-login #layout-content.kmsit-login-layout {
        grid-template-columns: 1fr;
    }

    .kmsit-brand-panel {
        padding: 24px;
    }

    .kmsit-brand-content,
    .kmsit-brand-bottom {
        display: none;
    }

    .kmsit-login-panel {
        min-height: 75vh;
        padding: 20px;
    }

    .kmsit-login-card {
        padding: 30px 24px;
    }
}

/* KMSIT official logo */

body.task-login .kmsit-brand-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

body.task-login .kmsit-official-logo {
    display: block;
    width: 105px;
    height: 105px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 20px rgba(0, 130, 255, .15));
}

body.task-login .kmsit-brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

@media (max-width: 900px) {
    body.task-login .kmsit-official-logo {
        width: 65px;
        height: 65px;
    }

    body.task-login .kmsit-brand-name {
        font-size: 15px;
    }
}

/* KMSIT Premium Dark - Technology Building Background */

body.task-login .kmsit-brand-panel {
    position: relative;
    isolation: isolate;

    background-image:
        linear-gradient(
            90deg,
            rgba(2, 10, 28, .66) 0%,
            rgba(3, 16, 39, .48) 55%,
            rgba(3, 16, 39, .64) 100%
        ),
        url("/skins/kmsit/images/kmsit-building.png");

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.task-login .kmsit-brand-top,
body.task-login .kmsit-brand-content,
body.task-login .kmsit-brand-bottom {
    position: relative;
    z-index: 1;
}

body.task-login .kmsit-brand-content h2 {
    text-shadow: 0 5px 25px rgba(0, 0, 0, .65);
}

body.task-login .kmsit-brand-description,
body.task-login .kmsit-brand-features {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

@media (max-width: 900px) {
    body.task-login .kmsit-brand-panel {
        background-position: center 35%;
    }
}
