/* ==========================================================
   SEMS AUTHENTICATION
   PREMIUM SPLIT-SCREEN LOGIN
   ========================================================== */


/* ==========================================================
   RESET
   ========================================================== */

html,
body {

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}


* {

    box-sizing: border-box;
}


body {

    font-family: "Inter", sans-serif;

    color: #1F2937;

    background: #FFFFFF;

    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   MAIN AUTH PAGE
   ========================================================== */

.sems-auth-page {

    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: grid;

    grid-template-columns: 58% 42%;

    overflow: hidden;
}


/* ==========================================================
   LEFT — INTRODUCTION
   ========================================================== */

.sems-auth-intro {

    position: relative;

    min-width: 0;

    overflow: hidden;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #4A004B 0%,
            #3D003E 45%,
            #280029 100%
        );
}


/* ==========================================================
   LEFT — BACKGROUND DECORATION
   ========================================================== */

.sems-auth-intro::before {

    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    top: -320px;
    right: -210px;

    border: 1px solid rgba(255, 198, 0, 0.13);

    border-radius: 50%;

    pointer-events: none;
}


.sems-auth-intro::after {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    bottom: -330px;
    left: -280px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 50%;

    pointer-events: none;
}


/* ==========================================================
   LEFT — CONTENT
   ========================================================== */

.sems-intro-content {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 780px;

    height: 100%;

    margin: 0 auto;

    padding: 55px 8% 45px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* ==========================================================
   LEFT — EYEBROW
   ========================================================== */

.sems-intro-label {

    position: relative;

    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-bottom: 17px;

    padding-left: 14px;

    color: #FFC600;

    font-size: 11px;

    font-weight: 800;

    line-height: 1.4;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.sems-intro-label::before {

    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 4px;
    height: 18px;

    transform: translateY(-50%);

    border-radius: 3px;

    background: #FFC600;
}


/* ==========================================================
   LEFT — MAIN HEADING
   ========================================================== */

.sems-intro-heading h1 {

    max-width: 650px;

    margin: 0;

    color: #FFFFFF;

    font-size: clamp(42px, 4.2vw, 64px);

    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -2.7px;
}


/* ==========================================================
   LEFT — TAGLINE
   ========================================================== */

.sems-intro-tagline {

    margin: 25px 0 0;

    color: #FFFFFF;

    font-size: 18px;

    font-weight: 650;

    line-height: 1.6;

    letter-spacing: -0.2px;
}


.sems-intro-tagline br {

    display: none;
}


/* ==========================================================
   LEFT — DESCRIPTION
   ========================================================== */

.sems-intro-description {

    max-width: 550px;

    margin: 17px 0 0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;

    font-weight: 400;

    line-height: 1.8;
}


/* ==========================================================
   LEFT — ELECTION VISUAL
   ========================================================== */

.sems-election-visual {

    position: relative;

    width: 100%;
    height: 215px;

    margin-top: 28px;

    display: flex;

    align-items: center;
    justify-content: flex-start;
}

/* ==========================================================
   VISUAL LIGHT
   ========================================================== */

.sems-election-visual::before {

    content: "";

    position: absolute;

    width: 330px;
    height: 190px;

    left: 50%;
    bottom: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(255, 198, 0, 0.14) 0%,
            rgba(255, 198, 0, 0.04) 42%,
            transparent 72%
        );

    filter: blur(5px);

    pointer-events: none;
}


/* ==========================================================
   DECORATIVE CIRCLES
   ========================================================== */

.visual-circle {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.visual-circle-one {

    width: 175px;
    height: 175px;

    right: 15%;

    bottom: -40px;

    border: 1px solid rgba(255, 198, 0, 0.13);
}


.visual-circle-two {

    width: 110px;
    height: 110px;

    left: 18%;

    top: 25px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    background: rgba(255, 255, 255, 0.025);
}


/* ==========================================================
   REAL ELECTION BALLOT IMAGE
   ========================================================== */

.sems-ballot-image {

    position: relative;

    z-index: 5;

    display: block;

    width: 470px;
    max-width: 82%;

    height: auto;

    margin: 0 auto;
    transform: translate(-145px, 25px);

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 28px rgba(0, 0, 0, 0.20)
        );
}


/* ==========================================================
   LEFT — VALUES
   ========================================================== */

.sems-intro-points {

    position: relative;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;
}


.intro-point {

    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;

    padding: 7px 13px 7px 7px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.035);

    color: rgba(255, 255, 255, 0.84);

    font-size: 11px;

    font-weight: 650;
}


.intro-point-icon {

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: rgba(255, 198, 0, 0.10);

    color: #FFC600;

    font-size: 10px;
}


/* ==========================================================
   RIGHT — LOGIN PANEL
   ========================================================== */

.sems-auth-login {

    position: relative;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 45px;

    background: #FFFFFF;
}


/* ==========================================================
   RIGHT — SUBTLE DECORATION
   ========================================================== */

.sems-auth-login::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -170px;
    bottom: -160px;

    border-radius: 50%;

    background:
        rgba(74, 0, 75, 0.025);

    pointer-events: none;
}


/* ==========================================================
   RIGHT — CONTAINER
   ========================================================== */

.sems-login-container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 390px;
}


/* ==========================================================
   RIGHT — LOGO
   ========================================================== */

.sems-login-brand {

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 38px;
}


.sems-brand-logo {

    width: 190px;

    display: block;
}


.sems-brand-logo img {

    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* ==========================================================
   RIGHT — HEADING
   ========================================================== */

.sems-login-heading {

    margin-bottom: 27px;
}


.sems-login-heading h2 {

    margin: 0 0 7px;

    color: #4A004B;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.25;

    letter-spacing: -0.4px;
}


.sems-login-heading p {

    margin: 0;

    color: #667085;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.5;
}


/* ==========================================================
   FORM
   ========================================================== */

.sems-login-form {

    width: 100%;
}


.sems-form-group {

    margin-bottom: 20px;
}


.sems-form-group label {

    display: block;

    margin: 0 0 8px;

    color: #202632;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.4;
}


/* ==========================================================
   INPUT WRAPPER
   ========================================================== */

.sems-input-wrapper {

    position: relative;

    width: 100%;
}


/* ==========================================================
   INPUT ICON
   ========================================================== */

.sems-input-icon {

    position: absolute;

    top: 50%;
    left: 15px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border-radius: 7px;

    background: #F5EEF5;

    color: #4A004B;

    font-size: 12px;

    pointer-events: none;
}


/* ==========================================================
   INPUT
   ========================================================== */

.sems-login-input {

    width: 100%;
    height: 52px;

    padding: 0 49px 0 55px;

    border: 1px solid #DED6E0;

    border-radius: 10px;

    outline: none;

    background: #F8F4F8;

    color: #1F2937;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 500;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.sems-login-input::placeholder {

    color: #9AA3B1;

    font-size: 13px;

    font-weight: 400;

    opacity: 1;
}


.sems-login-input:hover {

    border-color: #B6BDC8;
}


.sems-login-input:focus {

    border-color: #4A004B;

    background: #FFFFFF;

    box-shadow:
        0 0 0 3px rgba(74, 0, 75, 0.075);
}


/* ==========================================================
   PASSWORD TOGGLE
   ========================================================== */

.sems-password-toggle {

    position: absolute;

    top: 50%;
    right: 10px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #8A94A3;

    font-size: 14px;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.sems-password-toggle:hover {

    color: #4A004B;

    background: #F5EEF5;
}


.sems-password-toggle:focus {

    outline: none;

    color: #4A004B;

    background: #F5EEF5;
}


/* ==========================================================
   SIGN IN BUTTON
   ========================================================== */

.sems-login-button {

    position: relative;

    width: 100%;
    height: 53px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    margin-top: 5px;

    padding: 0 20px;

    overflow: hidden;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #4A004B 0%,
            #5A005B 100%
        );

    color: #FFFFFF;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(74, 0, 75, 0.19);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.sems-login-button::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.10),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.55s ease;
}


.sems-login-button:hover {

    background:
        linear-gradient(
            135deg,
            #380038 0%,
            #4A004B 100%
        );

    transform: translateY(-1px);

    box-shadow:
        0 13px 26px rgba(74, 0, 75, 0.23);
}


.sems-login-button:hover::before {

    left: 140%;
}


.sems-login-button i {

    font-size: 13px;

    transition:
        transform 0.2s ease;
}


.sems-login-button:hover i {

    transform: translateX(3px);
}


.sems-login-button:focus {

    outline: none;

    box-shadow:
        0 0 0 3px rgba(74, 0, 75, 0.10),
        0 10px 22px rgba(74, 0, 75, 0.19);
}


.sems-login-button:active {

    transform: translateY(0);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .sems-auth-page {

        grid-template-columns: 55% 45%;
    }


    .sems-intro-content {

        padding-left: 7%;
        padding-right: 7%;
    }


    .sems-intro-heading h1 {

        font-size: 46px;

        letter-spacing: -1.8px;
    }


    .sems-intro-tagline {

        font-size: 16px;
    }


    .sems-intro-description {

        font-size: 12px;
    }


    .sems-election-visual {

        height: 175px;
    }


   .sems-ballot-image {

    position: relative;

    z-index: 5;

    display: block;

    width: 470px;
    max-width: 82%;

    height: auto;

    margin: 0;

    transform: translateY(25px);

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 28px rgba(0, 0, 0, 0.20)
        );
}


    .sems-auth-login {

        padding: 32px;
    }

}


/* ==========================================================
   SMALL TABLET
   ========================================================== */

@media (max-width: 780px) {

    .sems-auth-page {

        display: block;

        width: 100%;
        height: 100vh;
        height: 100dvh;
    }


    .sems-auth-intro {

        display: none;
    }


    .sems-auth-login {

        width: 100%;
        height: 100%;

        min-height: 100vh;
        min-height: 100dvh;

        padding: 30px 22px;
    }


    .sems-login-container {

        max-width: 410px;
    }


    .sems-login-brand {

        justify-content: center;
    }


    .sems-login-heading {

        text-align: center;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .sems-auth-login {

        padding: 24px 18px;
    }


    .sems-login-brand {

        margin-bottom: 30px;
    }


    .sems-brand-logo {

        width: 175px;
    }


    .sems-login-heading {

        margin-bottom: 27px;
    }


    .sems-login-heading h2 {

        font-size: 24px;

        letter-spacing: -0.5px;
    }


    .sems-login-heading p {

        font-size: 12px;
    }


    .sems-login-input,
    .sems-login-button {

        height: 50px;
    }

}


/* ==========================================================
   SHORT DESKTOP SCREENS
   ========================================================== */

@media (min-width: 781px) and (max-height: 700px) {

    .sems-intro-content {

        padding-top: 35px;
        padding-bottom: 30px;
    }


    .sems-intro-label {

        margin-bottom: 11px;
    }


    .sems-intro-heading h1 {

        font-size: 42px;
    }


    .sems-intro-tagline {

        margin-top: 15px;

        font-size: 15px;
    }


    .sems-intro-description {

        margin-top: 11px;

        font-size: 12px;
    }


    .sems-election-visual {

        height: 145px;

        margin-top: 8px;
    }


    .sems-ballot-image {

        width: 360px;

        max-width: 76%;
    }


    .sems-intro-points {

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 12px;

    margin-top: 75px;
}


    .sems-login-brand {

        margin-bottom: 27px;
    }


    .sems-login-heading {

        margin-bottom: 22px;
    }


    .sems-form-group {

        margin-bottom: 15px;
    }

}

/* ==========================================
   SEMS AUTHENTICATION TOAST
========================================== */

.sems-auth-toast {

    min-width: 360px;

    max-width: 430px;

    padding: 16px 20px !important;

    border-radius: 6px !important;

    background: #4a004b !important;

    color: #ffffff !important;

    border-left: 5px solid #ffc600 !important;

    box-shadow: none !important;

}


/* ==========================================
   TITLE
========================================== */

.sems-auth-toast .swal2-title {

    color: #ffffff !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    margin: 0 0 4px 0 !important;

}


/* ==========================================
   MESSAGE
========================================== */

.sems-auth-toast .swal2-html-container {

    color: rgba(255, 255, 255, 0.9) !important;

    font-size: 13px !important;

    line-height: 1.5 !important;

    margin: 0 !important;

}


/* ==========================================
   ICON
========================================== */

.sems-auth-toast .swal2-icon {

    margin: 0 12px 0 0 !important;

}


/* ==========================================
   PROGRESS BAR
========================================== */

.sems-auth-toast .swal2-timer-progress-bar {

    background: #ffc600 !important;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {

    .sems-auth-toast {

        min-width: auto;

        width: calc(100vw - 30px);

        max-width: none;

    }

}