@import url(
    "https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap"
);


:root {
    --blue: #0c5d9e;
    --blue-light: #2a78b5;
    --blue-deep: #073f6e;
    --blue-dark: #052f53;

    --gold: #ee9a2b;
    --gold-light: #f7bd61;
    --gold-deep: #a5681b;

    --ink: #17212b;
    --muted: #66717d;
    --paper: #ffffff;
    --wash: #f4f8fc;

    --line: rgba(12, 93, 158, 0.16);
    --line-strong: rgba(12, 93, 158, 0.28);

    --shadow:
        0 28px 75px rgba(17, 45, 70, 0.16);
}


* {
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {
    margin: 0;

    color: var(--ink);

    background: var(--wash);

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    text-rendering: optimizeLegibility;
}


img {
    display: block;
    max-width: 100%;
}


button,
input {
    font: inherit;
}


.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(390px, 0.9fr)
        minmax(500px, 1.1fr);
}


/* Brand side */

.brand-panel {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding:
        clamp(32px, 5vw, 72px);

    color: #ffffff;

    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(238, 154, 43, 0.29),
            transparent 24rem
        ),
        radial-gradient(
            circle at 12% 88%,
            rgba(42, 120, 181, 0.55),
            transparent 30rem
        ),
        linear-gradient(
            145deg,
            var(--blue),
            var(--blue-deep) 52%,
            var(--blue-dark)
        );

    overflow: hidden;
}


.brand-panel::before {
    content: "";

    position: absolute;

    right: -180px;
    bottom: -180px;

    width: 480px;
    height: 480px;

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

    border-radius: 50%;
}


.brand-panel::after {
    content: "";

    position: absolute;

    right: -95px;
    bottom: -95px;

    width: 310px;
    height: 310px;

    border:
        1px solid rgba(238, 154, 43, 0.19);

    border-radius: 50%;
}


.back-link {
    position: relative;
    z-index: 2;

    align-self: flex-start;

    display: inline-flex;
    align-items: center;

    gap: 10px;

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

    font-size: 0.86rem;
    font-weight: 600;

    text-decoration: none;

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


.back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}


.brand-content {
    position: relative;
    z-index: 2;

    max-width: 560px;

    margin: auto 0;
}


.platform-logo {
    width:
        clamp(190px, 23vw, 315px);

    margin-bottom: 38px;

    filter:
        drop-shadow(
            0 24px 32px rgba(0, 0, 0, 0.17)
        );
}


.eyebrow,
.form-eyebrow {
    margin: 0 0 16px;

    color: var(--gold-light);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}


.brand-content h1 {
    max-width: 650px;

    margin: 0;

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size:
        clamp(2.55rem, 4.7vw, 4.8rem);

    line-height: 1.08;

    letter-spacing: -0.025em;

    text-wrap: balance;
}


.brand-description {
    max-width: 610px;

    margin: 28px 0 0;

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

    font-size:
        clamp(0.96rem, 1.35vw, 1.08rem);

    line-height: 1.85;
}


.ministry-tagline {
    position: relative;
    z-index: 2;

    margin: 42px 0 0;

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

    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


/* Form side */

.form-panel {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding:
        clamp(30px, 6vw, 86px);

    background:
        radial-gradient(
            circle at top right,
            rgba(238, 154, 43, 0.12),
            transparent 26rem
        ),
        var(--wash);
}


.login-card {
    width:
        min(100%, 500px);

    padding:
        clamp(32px, 5vw, 55px);

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

    border-radius: 26px;

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

    box-shadow: var(--shadow);
}


.mobile-logo {
    display: none;
}


.form-eyebrow {
    color: var(--gold-deep);
}


.login-card h2 {
    margin: 0;

    color: var(--blue-deep);

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height: 1.15;
}


.form-introduction {
    margin: 14px 0 0;

    color: var(--muted);

    font-size: 0.94rem;
    line-height: 1.7;
}


.login-form {
    margin-top: 35px;
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    color: var(--blue-deep);

    font-size: 0.82rem;
    font-weight: 700;
}


.form-group input {
    width: 100%;
    min-height: 53px;

    padding: 0 16px;

    border:
        1px solid var(--line-strong);

    border-radius: 9px;

    color: var(--ink);

    background: #ffffff;

    outline: none;

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


.form-group input::placeholder {
    color: #9ca5ad;
}


.form-group input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 4px rgba(12, 93, 158, 0.1);
}


.password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.password-heading label {
    margin-bottom: 9px;
}


.future-link {
    color: var(--muted-light);

    font-size: 0.76rem;
    font-weight: 600;

    cursor: default;
}


.remember-option {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 2px 0 26px;

    color: var(--muted);

    font-size: 0.79rem;

    cursor: pointer;
}


.remember-option input {
    width: 16px;
    height: 16px;

    margin: 2px 0 0;

    accent-color: var(--blue);
}


.sign-in-button {
    width: 100%;
    min-height: 54px;

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

    gap: 12px;

    border: 0;
    border-radius: 9px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            var(--blue-deep)
        );

    font-weight: 700;

    box-shadow:
        0 15px 32px rgba(12, 93, 158, 0.24);

    cursor: pointer;

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


.sign-in-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 19px 38px rgba(12, 93, 158, 0.3);
}


.sign-in-button span {
    font-size: 1.15rem;
}


.registration-message {
    margin-top: 30px;
    padding-top: 25px;

    border-top:
        1px solid var(--line);

    text-align: center;
}


.registration-message p {
    margin: 0;

    color: var(--blue-deep);

    font-size: 0.85rem;
    font-weight: 700;
}


.registration-message span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 0.77rem;
}


.security-message {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin: 25px 0 0;

    color: var(--muted-light);

    font-size: 0.69rem;
    line-height: 1.55;
}


.security-message svg {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    fill: none;

    stroke: var(--blue);

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Tablet */

@media (max-width: 980px) {

    .login-page {
        grid-template-columns:
            minmax(330px, 0.8fr)
            minmax(430px, 1.2fr);
    }


    .brand-panel {
        padding:
            40px 34px;
    }


    .platform-logo {
        width:
            min(80%, 270px);
    }


    .brand-content h1 {
        font-size:
            clamp(2.2rem, 5vw, 3.7rem);
    }

}


/* Mobile */

@media (max-width: 760px) {

    .login-page {
        display: block;
    }


    .brand-panel {
        min-height: auto;

        padding:
            23px 22px;

        background:
            linear-gradient(
                135deg,
                var(--blue),
                var(--blue-deep)
            );
    }


    .brand-content,
    .ministry-tagline {
        display: none;
    }


    .back-link {
        min-height: 40px;

        color: #ffffff;
    }


    .form-panel {
        min-height:
            calc(100vh - 86px);

        padding:
            38px 18px 54px;
    }


    .login-card {
        padding:
            34px 23px;

        border-radius: 20px;
    }


    .mobile-logo {
        display: block;

        width: 125px;

        margin:
            0 auto 26px;
    }


    .login-card h2,
    .form-eyebrow,
    .form-introduction {
        text-align: center;
    }

}


/* Small phones */

@media (max-width: 420px) {

    .form-panel {
        padding-inline: 12px;
    }


    .login-card {
        padding:
            30px 19px;
    }


    .password-heading {
        align-items: flex-start;
    }


    .future-link {
        max-width: 90px;

        text-align: right;
    }

}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;
    }

}