:root {
    --cornari-navy: #002b49;
    --cornari-navy-dark: #001f36;
    --cornari-blue: #167cac;
    --cornari-teal: #178f7a;

    --text-main: #002b49;
    --text-secondary: #667788;

    --border: #d6dee6;
    --background: #f7fafc;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 50% 35%,
            #ffffff 0%,
            #f9fbfc 42%,
            #edf5f9 100%
        );

    overflow-x: hidden;
}

.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.page::before {
    content: "";
    position: absolute;

    width: 680px;
    height: 170px;

    top: -80px;
    left: -100px;

    background: rgba(21, 111, 156, 0.045);

    transform: rotate(-35deg);

    border-radius: 100px;
}

.page::after {
    content: "";
    position: absolute;

    width: 680px;
    height: 170px;

    top: 120px;
    left: -180px;

    background: rgba(23, 143, 122, 0.035);

    transform: rotate(-28deg);

    border-radius: 100px;
}

.topbar {
    position: absolute;

    right: 4%;
    top: 30px;

    z-index: 20;
}

.language {
    display: flex;
    align-items: center;
    gap: 12px;

    background: rgba(255,255,255,.75);

    border: 0;

    padding: 12px 20px;

    border-radius: 30px;

    color: var(--cornari-navy);

    font-size: 15px;

    box-shadow:
        0 6px 30px rgba(0, 43, 73, .04);
}

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

    display: flex;

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

    padding:
        80px 20px
        180px;
}

.login-card {
    width: 100%;
    max-width: 620px;

    position: relative;

    z-index: 10;

    background:
        rgba(255, 255, 255, .94);

    padding:
        38px 48px
        32px;

    border-radius: 20px;

    border:
        1px solid
        rgba(215, 226, 234, .7);

    box-shadow:
        0 22px 70px
        rgba(0, 43, 73, .09);
}

.brand {
    text-align: center;

    margin-bottom: 25px;
}

.logo {
    width: min(100%, 450px);

    max-height: 130px;

    object-fit: contain;
}

.login-heading {
    text-align: center;

    margin-bottom: 28px;
}

.login-heading h1 {
    font-size: 34px;

    font-weight: 700;

    color: var(--cornari-navy);

    margin:
        0 0
        6px;
}

.login-heading p {
    margin: 0;

    color: #73808c;

    font-size: 19px;
}

.field {
    height: 58px;

    display: flex;

    align-items: center;

    margin-bottom: 16px;

    background: #fff;

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

    border-radius: 10px;

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

.field:focus-within {
    border-color:
        rgba(22,124,172,.8);

    box-shadow:
        0 0 0 3px
        rgba(22,124,172,.08);
}

.field .icon {
    width: 62px;

    text-align: center;

    color: #607484;

    font-size: 21px;
}

.field input {
    flex: 1;

    height: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    padding: 0;

    color: #243746;

    font-size: 17px;
}

.field input::placeholder {
    color: #8a98a5;
}

.password-toggle {
    width: 60px;

    height: 100%;

    border: 0;

    background: transparent;

    color: #5e7383;

    cursor: pointer;

    font-size: 18px;
}

.login-button {
    width: 100%;

    height: 58px;

    margin-top: 7px;

    border: 0;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    cursor: pointer;

    background:
        linear-gradient(
            100deg,
            var(--cornari-navy),
            #004466
        );

    color: white;

    font-size: 18px;

    font-weight: 600;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 25px
        rgba(0, 43, 73, .18);
}

.arrow {
    font-size: 27px;

    line-height: 1;
}

.error-message {
    margin-bottom: 18px;

    padding: 11px 14px;

    border-radius: 8px;

    color: #9f1d1d;

    background: #fff1f1;

    border: 1px solid #ffdada;

    text-align: center;

    font-size: 14px;
}

.slogan {
    margin-top: 38px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    color: #718394;

    letter-spacing: 4px;

    font-size: 10px;

    white-space: nowrap;
}

.slogan span {
    width: 37px;

    height: 1px;

    background:
        #557689;
}

/* Decorative Cornari waves */

.wave {
    position: absolute;

    pointer-events: none;

    z-index: 2;

    transform-origin: center;
}

.wave-dark {
    width: 130%;

    height: 270px;

    bottom: -150px;
    left: -10%;

    background:
        var(--cornari-navy-dark);

    border-radius: 50% 50% 0 0;

    transform:
        rotate(3deg);
}

.wave-blue {
    width: 90%;

    height: 170px;

    right: -18%;
    bottom: -20px;

    border-radius:
        80% 0 0 0;

    background:
        linear-gradient(
            90deg,
            var(--cornari-navy),
            var(--cornari-blue)
        );

    transform:
        rotate(-8deg);
}

.wave-green {
    width: 74%;

    height: 120px;

    right: -13%;
    bottom: -10px;

    border-radius:
        90% 0 0 0;

    background:
        linear-gradient(
            90deg,
            #0b626b,
            var(--cornari-teal)
        );

    transform:
        rotate(-5deg);
}

footer {
    position: absolute;

    z-index: 30;

    bottom: 26px;

    left: 3%;
    right: 3%;

    display: flex;

    justify-content: space-between;

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

    font-size: 13px;
}

/* Mobile */

@media (max-width: 700px) {

    .topbar {
        top: 15px;
        right: 15px;
    }

    .login-area {
        align-items: flex-start;

        padding:
            95px 16px
            150px;
    }

    .login-card {
        padding:
            28px 22px
            30px;

        border-radius: 16px;
    }

    .logo {
        max-height: 95px;
    }

    .login-heading h1 {
        font-size: 28px;
    }

    .login-heading p {
        font-size: 16px;
    }

    .slogan {
        font-size: 8px;

        letter-spacing: 2px;
    }

    .slogan span {
        width: 18px;
    }

    footer {
        font-size: 11px;
    }

}
