@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

:root {
    --font-primary: "Comfortaa", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-primary);
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(11, 196, 76, 0.45), rgba(83, 150, 107, .45)),
                url('../img/bg-medico.jpg') center center / cover no-repeat;
    color: #222;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.login-card {
    width: 780px;
    height: 360px;
    display: grid;
    grid-template-columns: 292px 1fr;
    background: #ffffff;
    overflow: hidden;
    border-radius: 0 50px 0 50px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
}

.brand-area {
    background: #020025;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
}

.brand-box {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*border: 1px solid rgba(0, 204, 255, .04);*/
}

.brand-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.form-area {
    padding: 31px 48px 28px 48px;
    position: relative;
}

.form-area h1 {
    font-size: 27px;
    line-height: 1;
    font-weight: 400;
    margin-bottom: 28px;
    color: #232323;
}

.form-area label {
    display: block;
    font-size: 14px;
    color: #4d4d4d;
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-area input {
    width: 100%;
    height: 48px;
    border: 1px solid #c9ced8;
    background: #fff;
    padding: 0 13px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
    
}

.form-area input:focus {
    border-color: #53966B;
    box-shadow: 0 0 0 3px rgba(83, 150, 107, .20);
}

.password-wrapper {
    display: grid;
    grid-template-columns: 1fr 43px;
    margin-bottom: 12px;
}

.password-wrapper input {
    border-right: 0;
}

.password-wrapper button {
    border: 1px solid #9BBDA7;
    background: #eef5f0;
    cursor: pointer;
    font-size: 14px;
}

.forgot-link {
    display: inline-block;
    font-size: 14px;
    color: #0078ff;
    text-decoration: none;
    margin-top: 1px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-button {
    width: 142px;
    height: 50px;
    border: 0;
    border-radius: 28px;
    background: #53966B;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: absolute;
    right: 52px;
    bottom: 30px;
    transition: .2s ease;
}

.login-button:hover {
    filter: brightness(1.25);
    transform: translateY(-1px);
}

.error-message {
    background: #ffe8e8;
    color: #9d1010;
    border: 1px solid #ffc1c1;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

footer {
    position: absolute;
    bottom: 29px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 820px) {
    .login-card {
        width: 94vw;
        height: auto;
        grid-template-columns: 1fr;
        border-radius: 0 42px 0 42px;
    }

    .brand-area {
        min-height: 230px;
    }

    .brand-box {
        width: 220px;
        height: 220px;
    }

    .form-area {
        padding: 28px;
        min-height: 310px;
    }

    .login-button {
        position: static;
        margin-top: 22px;
        float: right;
    }

    footer {
        position: fixed;
        bottom: 14px;
        padding: 0 12px;
        font-size: 12px;
    }
}
