/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f1e5;
    color: #29251f;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
}
/* =========================================================
   THEME

   Green  : #c5df38
   Purple : #5b57c9
   Cream  : #f5f1e5
   Brown  : #2a211b
   Blue   : #3e4398
========================================================= */


/* =========================================================
   TOP STRIP
========================================================= */

.top-strip {
    height: 28px;

    background: #c5df38;

    border-bottom: 1px solid #acbf31;
}


.top-strip-inner {
    height: 100%;

    max-width: 1500px;

    margin: auto;

    display: flex;
    align-items: center;

    padding-left: 20px;
}


.top-strip-inner span {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 14px;

    color: #3e421d;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .7px;

    border-right: 1px solid #aabd2d;
}


.top-strip-inner span:first-child {
    border-left: 1px solid #aabd2d;
}

.brand-footer {
    position: relative;

    width: 100%;

    margin-top: auto;

    text-align: center;

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

    font-size: 11px;

    letter-spacing: 1px;

    z-index: 3;
}
/* =========================================================
   MAIN
========================================================= */

.login-page {
    flex: 1 1 auto;

    width: 100%;
    min-height: 0;
    height: auto;

    display: grid;
    grid-template-columns: minmax(400px, 43%) 1fr;

    overflow: hidden;
}
/* =========================================================
   LEFT BRAND PANEL
========================================================= */
.brand-panel {
    position: relative;

    height: 100%;
    min-height: 0;

    background:
        linear-gradient(
            145deg,
            #3d3f91 0%,
            #5552b6 55%,
            #5b57c9 100%
        );

    color: white;

    display: flex;
    flex-direction: column;

    padding: 60px clamp(45px, 7vw, 95px);

    overflow: hidden;
}

/* decorative circles */

.brand-panel::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    border: 1px solid
        rgba(255,255,255,.12);

    right: -210px;
    top: -100px;

}


.brand-panel::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    border: 1px solid
        rgba(197,223,56,.20);

    left: -160px;
    bottom: -100px;

}


/* branding */

.brand-content {

    position: relative;

    z-index: 2;

    max-width: 540px;

}

.college-mark {
    width: 65px;
    height: 65px;

    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;

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

    margin-bottom: 32px;

    overflow: hidden;
}

.college-mark img {
    width: 52px;
    height: 52px;

    object-fit: contain;

    display: block;
}


.brand-small {

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 3px;

    color: #dce99a;

    margin-bottom: 13px;

}


.brand-content h1 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        40px;

    line-height: 1.1;

    font-weight: 700;

    letter-spacing: -.5px;

}


.brand-divider {

    width: 65px;
    height: 4px;

    background: #c5df38;

    border-radius: 5px;

    margin: 20px 0 22px;

}


.brand-description {

    max-width: 490px;

    color:
        rgba(255,255,255,.82);

    font-size: 13px;

    line-height: 1.3;

}





/* =========================================================
   COMPACT PORTAL HELPLINE
========================================================= */

.brand-details {
    width: 100%;
    max-width: 365px;

    margin-top: 24px;

    padding: 16px 18px;

    box-sizing: border-box;

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

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

    border-left: 3px solid #d5f028;

    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   HEADER
========================================================= */

.helpline-header {
    display: flex;
    align-items: center;

    gap: 11px;

    padding-bottom: 12px;

    margin-bottom: 11px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}


.helpline-header-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

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

    background: rgba(213, 240, 40, 0.15);

    color: #d5f028;

    border-radius: 8px;

    font-size: 15px;
}


.helpline-title {
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.1px;

    line-height: 1.2;
}


.helpline-subtitle {
    margin-top: 3px;

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

    font-size: 10px;

    line-height: 1.2;
}


/* =========================================================
   DETAILS
========================================================= */

.helpline-details {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.helpline-row {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 36px;

    text-decoration: none;

    box-sizing: border-box;
}


.helpline-icon {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

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

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

    color: #d5f028;

    border-radius: 6px;

    font-size: 11px;
}


.helpline-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.helpline-label {
    color: rgba(255, 255, 255, 0.55);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    margin-bottom: 2px;
}


.helpline-value {
    color: #ffffff;

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   HOVER
========================================================= */

.helpline-row[href] {
    border-radius: 6px;

    transition: background 0.2s ease;
}

.helpline-row[href]:hover {
    background: rgba(255, 255, 255, 0.06);
}

.helpline-row[href]:hover .helpline-value {
    color: #d5f028;
}

.detail-icon {

    width: 21px;
    height: 21px;

    display: flex;

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

    background: #c5df38;

    color: #3c4118;

    border-radius: 50%;

    font-size: 11px;

    font-weight: 900;

}





/* =========================================================
   RIGHT PANEL
========================================================= */

.login-panel {

    min-height:
        calc(100vh - 28px);

    background: #f5f1e5;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px 30px 75px;

}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {

    width: min(480px, 100%);

    background: #fffdf7;

    border:
        1px solid #ded7c6;

    border-radius: 13px;

    padding: 38px 40px 32px;

    box-shadow:
        0 15px 45px
        rgba(48, 42, 28, .10);

}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 32px;

}


.login-icon {

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

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

    background: #eeefd6;

    color: #514eb0;

    border-radius: 10px;

}


.login-icon svg {

    width: 27px;
    height: 27px;

}


.login-eyebrow {

    display: block;

    color: #69674f;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.8px;

    margin-bottom: 2px;

}


.login-header h2 {

    color: #34387f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;

    line-height: 1.25;

}


.login-header p {

    color: #777267;

    font-size: 12px;

    margin-top: 2px;

}


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

.form-group {

    margin-bottom: 19px;

}


.form-group label {

    display: block;

    color: #403e38;

    font-size: 12px;

    font-weight: 750;

    margin-bottom: 7px;

}


.input-wrapper {

    position: relative;

}


.input-icon {

    position: absolute;

    left: 14px;

    top: 50%;

    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    color: #999487;

    pointer-events: none;

}


.input-icon svg {

    width: 100%;
    height: 100%;

}


.input-wrapper input {

    width: 100%;

    height: 50px;

    padding:
        0 15px 0 45px;

    background: #faf9f4;

    border:
        1px solid #d9d4c8;

    border-radius: 7px;

    outline: none;

    color: #33312d;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.input-wrapper input::placeholder {

    color: #aaa59a;

}


.input-wrapper input:focus {

    background: white;

    border-color: #5b57c9;

    box-shadow:
        0 0 0 3px
        rgba(91,87,201,.10);

}


.input-wrapper input:focus + * {

    color: #5b57c9;

}


/* =========================================================
   OTP
========================================================= */

.otp-group {

    display: none;

    animation:
        otpSlide .25s ease;

}


.otp-group.visible {

    display: block;

}


@keyframes otpSlide {

    from {

        opacity: 0;

        transform:
            translateY(-5px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.otp-wrapper input {

    letter-spacing: 6px;

    font-size: 18px;

    font-weight: 700;

    text-align: left;

}


.otp-info {

    margin-top: 7px;

    color: #858073;

    font-size: 10px;

    line-height: 1.5;

}


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

.message-area {

    display: none;

    min-height: 0;

    margin-top: 3px;

    margin-bottom: 14px;

    padding: 11px 13px;

    border-radius: 7px;

    font-size: 11px;

    line-height: 1.45;

    align-items: center;

    gap: 9px;

}


.message-area.error-message {

    display: flex;

    color: #922525;

    background: #ffe3e3;

    border:
        1px solid #d39898;

    border-left:
        3px solid #851919;

}


.message-area.success-message {

    display: flex;

    color: #29851d;

    background: #d6eebb;

    border:
        1px solid #93d877;

    border-left:
        3px solid #3bae2c;

}


.message-area.info-message {

    display: flex;

    color: #4e4b89;

    background: #f0efff;

    border:
        1px solid #d1cef1;

    border-left:
        3px solid #5b57c9;

}


.message-icon {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

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

    border-radius: 50%;

    font-size: 13px;
    line-height: 1;
}


/* GREEN SUCCESS */

.success-message .message-icon {
    background: #ffffff;
    color: #2e9d32;
}


/* RED ERROR */

.error-message .message-icon {
    background: #ffffff;
    color: #c62828;
}


/* INFO */

.info-message .message-icon {
    background: #ffffff;
    color: #5b57c9;
}


/* =========================================================
   ACTION BUTTON
========================================================= */

.action-button {

    width: 100%;

    height: 51px;

    border: none;

    border-radius: 7px;

    background: #5b57c9;

    color: white;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .15px;

    box-shadow:
        0 5px 13px
        rgba(91,87,201,.22);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.action-button:hover {

    background: #4945aa;

    transform: translateY(-1px);

    box-shadow:
        0 7px 17px
        rgba(91,87,201,.27);

}


.action-button:active {

    transform: translateY(0);

}


.button-arrow {

    font-size: 19px;

    line-height: 1;

}


.button-loader {

    display: none;

    width: 18px;
    height: 18px;

    border:
        2px solid
        rgba(255,255,255,.35);

    border-top-color: white;

    border-radius: 50%;

    animation:
        buttonSpin .7s linear infinite;

}


@keyframes buttonSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   SECURITY NOTE
========================================================= */

.security-note {

    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 7px;

    margin-top: 19px;

    color: #888276;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;

}


.security-icon {

    width: 15px;
    height: 15px;

    flex-shrink: 0;

    margin-top: 1px;

    color: #777166;

}


.security-icon svg {

    width: 100%;
    height: 100%;

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    position: relative;
    left: 0;
    font-size: 11px;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: #241c17;
    display: flex;
    color: #c9c3b7;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    box-sizing: border-box;
    z-index: 1000;
    flex-shrink: 0;
}


#actionButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}


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

@media (max-width: 900px) {

    .login-page {
        grid-template-columns: 1fr;
    }


    .brand-panel {
        min-height: 170px;
        height: auto;

        padding: 35px 30px;
    }


    .brand-content {
        max-width: 700px;
        margin: auto;
    }


    .brand-content h1 {
        font-size: 42px;
    }


    .brand-details {
        display: none;
    }


    .brand-footer {
        display: none;
    }


    .login-panel {
        min-height: 0;

        padding: 35px 20px 45px;

        justify-content: center;
    }


    .login-footer {
        width: 100%;
    }
}

