/* =========================================================
   GCC SCHOOL - PORTAL LOGIN SYSTEM
========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --gcc-blue: #075aa8;
    --gcc-blue-dark: #063d78;
    --gcc-orange: #ff7200;
    --portal: #0787c8;
    --portal-dark: #05699d;
    --portal-soft: #eaf7fd;
    --text: #172b45;
    --muted: #738197;
    --border: #e1e8ef;
    --white: #ffffff;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f9fd;
    color: var(--text);
}

/* =========================================================
   PAGE
========================================================= */

.portal-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(7, 135, 200, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(255, 114, 0, .08),
            transparent 30%
        ),
        #f6f9fc;
}

/* =========================================================
   TOP HEADER
========================================================= */

.portal-header {
    min-height: 76px;

    padding: 10px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom:
        1px solid
        #e7edf3;

    box-shadow:
        0 4px 18px
        rgba(18, 55, 90, .05);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.portal-brand-logo {
    width: 52px;
    height: 52px;

    position: relative;

    display: grid;
    place-items: center;

    border:
        2px solid
        var(--gcc-orange);

    border-radius: 50%;

    color: var(--gcc-blue);

    background: #ffffff;

    font-size: 21px;
}

.portal-brand-logo::before {
    content: "";

    position: absolute;
    inset: 4px;

    border:
        1px solid
        var(--gcc-blue);

    border-radius: 50%;
}

.portal-brand-logo i {
    position: relative;
    z-index: 2;
}

.portal-brand-text strong {
    display: block;

    color: var(--gcc-blue);

    font-size: 19px;
    font-weight: 900;

    text-transform: uppercase;
}

.portal-brand-text small {
    display: block;

    margin-top: 3px;

    color: var(--gcc-orange);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .5px;
}

.portal-home {
    min-height: 40px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border:
        1px solid
        #dce6ef;

    border-radius: 7px;

    color: var(--gcc-blue);

    background: #ffffff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition: .2s;
}

.portal-home:hover {
    color: #ffffff;
    background: var(--gcc-blue);
    border-color: var(--gcc-blue);
}

/* =========================================================
   CONTENT
========================================================= */

.portal-main {
    flex: 1;

    width: 100%;

    padding: 55px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-box {
    width: min(950px, 100%);
    min-height: 560px;

    display: grid;

    grid-template-columns:
        .9fr
        1.1fr;

    overflow: hidden;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 25px 70px
        rgba(17, 54, 88, .13);
}

/* =========================================================
   LEFT SIDE
========================================================= */

.portal-info {
    position: relative;

    overflow: hidden;

    padding: 55px 45px;

    display: flex;
    flex-direction: column;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--portal),
            var(--portal-dark)
        );
}

.portal-info::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -130px;
    top: -100px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);
}

.portal-info::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    left: -120px;
    bottom: -120px;

    border:
        35px solid
        rgba(255,255,255,.06);

    border-radius: 50%;
}

.portal-info-content {
    position: relative;
    z-index: 2;
}

.portal-big-icon {
    width: 76px;
    height: 76px;

    margin-bottom: 30px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    color: var(--portal);

    background: #ffffff;

    font-size: 31px;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.12);
}

.portal-label {
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: .8;
}

.portal-info h1 {
    margin: 0 0 15px;

    font-size: 35px;
    line-height: 1.1;
    font-weight: 900;
}

.portal-info-description {
    margin: 0 0 32px;

    max-width: 330px;

    color:
        rgba(255,255,255,.82);

    font-size: 13px;
    line-height: 1.7;
}

/* FEATURES */

.portal-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.portal-feature {
    display: flex;
    align-items: center;
    gap: 10px;

    color:
        rgba(255,255,255,.92);

    font-size: 12px;
    font-weight: 600;
}

.portal-feature i {
    width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(255,255,255,.15);

    font-size: 10px;
}

.portal-secure {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 35px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .7px;

    opacity: .75;

    text-transform: uppercase;
}

/* =========================================================
   RIGHT LOGIN FORM
========================================================= */

.portal-form-side {
    padding: 55px 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #ffffff;
}

.portal-form-heading {
    margin-bottom: 32px;
}

.portal-form-heading span {
    display: block;

    margin-bottom: 8px;

    color: var(--portal);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.portal-form-heading h2 {
    margin: 0 0 8px;

    color: #172b45;

    font-size: 29px;
    font-weight: 900;
}

.portal-form-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   ALERT
========================================================= */

.portal-alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    border:
        1px solid
        #ffd4d4;

    border-radius: 8px;

    color: #b42318;

    background: #fff3f3;

    font-size: 11px;
    line-height: 1.5;
}

.portal-alert.success {
    color: #087443;

    border-color: #b9ead1;

    background: #effcf5;
}

/* =========================================================
   INPUT
========================================================= */

.portal-field {
    margin-bottom: 19px;
}

.portal-field label {
    display: block;

    margin-bottom: 7px;

    color: #34465d;

    font-size: 11px;
    font-weight: 800;
}

.portal-input {
    height: 50px;

    position: relative;

    display: flex;
    align-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    background: #fbfcfe;

    transition: .2s;
}

.portal-input:focus-within {
    border-color: var(--portal);

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        var(--portal-soft);
}

.portal-input > i {
    width: 47px;

    color: #93a1b2;

    text-align: center;

    font-size: 14px;
}

.portal-input input {
    flex: 1;

    width: 100%;
    height: 100%;

    padding: 0 12px 0 0;

    border: 0;
    outline: 0;

    color: #263a51;

    background: transparent;

    font-size: 13px;
}

.portal-input input::placeholder {
    color: #a4afbc;
}

.password-toggle {
    width: 45px;
    height: 100%;

    border: 0;

    color: #8594a6;

    background: transparent;

    cursor: pointer;

    font-size: 14px;
}

.password-toggle:hover {
    color: var(--portal);
}

/* =========================================================
   OPTIONS
========================================================= */

.portal-options {
    margin:
        -2px
        0
        23px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.portal-remember {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #6d7c8f;

    font-size: 11px;

    cursor: pointer;
}

.portal-remember input {
    accent-color: var(--portal);
}

.portal-forgot {
    color: var(--portal);

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
}

.portal-forgot:hover {
    text-decoration: underline;
}

/* =========================================================
   LOGIN BUTTON
========================================================= */

.portal-submit {
    width: 100%;
    height: 50px;

    border: 0;
    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            var(--portal),
            var(--portal-dark)
        );

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .3px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        color-mix(
            in srgb,
            var(--portal) 25%,
            transparent
        );

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.portal-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px
        rgba(0,0,0,.15);
}

/* =========================================================
   BACK
========================================================= */

.portal-back {
    margin-top: 27px;

    text-align: center;
}

.portal-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #758498;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
}

.portal-back a:hover {
    color: var(--portal);
}

/* =========================================================
   FOOTER
========================================================= */

.portal-footer {
    padding: 20px;

    color: #8593a5;

    text-align: center;

    font-size: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .portal-main {
        padding: 35px 15px;
    }

    .portal-box {
        max-width: 520px;

        grid-template-columns:
            1fr;
    }

    .portal-info {
        min-height: auto;

        padding: 35px;
    }

    .portal-info h1 {
        font-size: 27px;
    }

    .portal-info-description {
        margin-bottom: 20px;
    }

    .portal-features {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }

    .portal-secure {
        margin-top: 25px;
    }

    .portal-form-side {
        padding: 40px 35px;
    }

}

@media (max-width: 500px) {

    .portal-header {
        min-height: 65px;

        padding: 8px 15px;
    }

    .portal-brand-logo {
        width: 43px;
        height: 43px;

        font-size: 17px;
    }

    .portal-brand-text strong {
        font-size: 15px;
    }

    .portal-brand-text small {
        font-size: 8px;
    }

    .portal-home span {
        display: none;
    }

    .portal-home {
        width: 40px;

        padding: 0;

        justify-content: center;
    }

    .portal-main {
        padding: 20px 12px;
    }

    .portal-box {
        border-radius: 14px;
    }

    .portal-info {
        padding: 28px 25px;
    }

    .portal-big-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 20px;

        font-size: 23px;
    }

    .portal-info h1 {
        font-size: 24px;
    }

    .portal-features {
        grid-template-columns: 1fr;
    }

    .portal-form-side {
        padding: 32px 22px;
    }

    .portal-form-heading h2 {
        font-size: 24px;
    }

    .portal-options {
        align-items: flex-start;
        flex-direction: column;
    }

}