* {
    box-sizing: border-box;
}

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

body {
    background: #f5f8fc;
    color: #10265c;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 1.1fr) minmax(380px, .9fr);
    background: #f7fbff;
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 52px;
    background-image: linear-gradient(90deg, rgba(7, 31, 52, .94), rgba(7, 45, 75, .7) 42%, rgba(255, 255, 255, .08)), url("../assets/images/tipos-de-transporte-de-mercancias.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
}

.login-visual::after {
    position: absolute;
    right: -70px;
    bottom: -90px;
    color: rgba(44, 178, 226, .26);
    content: "\f57d";
    font-family: "Font Awesome 5 Free";
    font-size: 260px;
    font-weight: 900;
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 5px solid #85c64f;
    border-right-color: #00a9dd;
    border-radius: 50%;
    color: #00a9dd;
    font-size: 30px;
}

.brand-name {
    color: #10a9df;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.visual-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding-bottom: 52px;
}

.visual-copy h1 {
    margin: 0 0 18px;
    font-size: 46px;
    font-weight: 850;
    line-height: 1.08;
}

.visual-copy p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 21px;
    line-height: 1.38;
}

.login-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
    background: radial-gradient(circle at 100% 0%, rgba(16, 169, 223, .11), transparent 32%), #f8fbff;
}

.login-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid #dce7f5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 55px rgba(24, 71, 130, .14);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.card-heading > span {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #11c7d5, #006bd8);
    color: #fff;
    font-size: 25px;
}

.card-heading h2 {
    margin: 0;
    color: #102866;
    font-size: 31px;
    line-height: 1.05;
}

.card-heading p {
    margin: 7px 0 0;
    color: #5072ac;
    font-size: 15px;
    line-height: 1.35;
}

.field {
    display: block;
    margin-bottom: 18px;
}

.field > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: #19366f;
    font-size: 14px;
    font-weight: 700;
}

.input-wrap {
    display: flex;
    align-items: center;
    height: 48px;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d2deed;
    border-radius: 7px;
    background: #fff;
    color: #6c8abd;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap:focus-within {
    border-color: #36a1ff;
    box-shadow: 0 0 0 4px rgba(54, 161, 255, .14);
}

.input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #153065;
    font-size: 16px;
}

.input-wrap input::placeholder {
    color: #7894c5;
}

.login-button {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 1px solid #006bd8;
    border-radius: 7px;
    background: linear-gradient(135deg, #10a9df, #006bd8);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(0, 107, 216, .22);
}

.login-button:hover {
    background: linear-gradient(135deg, #12b8ed, #0877e9);
}

.hidden-field {
    display: none;
}

.login-error {
    display: block;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #ffd1d4;
    border-radius: 7px;
    background: #fff4f5;
    color: #b4232d;
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 300px;
        padding: 30px 24px;
    }

    .visual-copy {
        padding-bottom: 0;
    }

    .visual-copy h1 {
        font-size: 35px;
    }

    .visual-copy p {
        font-size: 18px;
    }

    .login-panel {
        min-height: auto;
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 40px;
    }

    .login-card {
        padding: 24px;
    }

    .card-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
