.dy-portal-login {
    display: grid;
    grid-template-columns: minmax(0, 53fr) minmax(480px, 47fr);
    min-height: 100vh;
    background: #f7f6f3;
}

.dy-portal-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(28px, 4vw, 58px);
    color: #fff;
    overflow: hidden;
    background: #050403 var(--dy-login-hero) center / cover no-repeat;
}

.dy-portal-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 3, 3, .96) 0%, rgba(3, 3, 3, .82) 42%, rgba(3, 3, 3, .35) 100%), linear-gradient(0deg, rgba(0, 0, 0, .65), transparent 50%);
}

.dy-portal-brand,
.dy-portal-message {
    position: relative;
    z-index: 1;
}

.dy-portal-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: clamp(18px, 1.3vw, 24px);
}

.dy-portal-brand img,
.dy-brand-logo {
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.dy-portal-brand img {
    width: 58px;
    height: 58px;
    box-shadow: 0 10px 30px rgba(220, 122, 0, .28);
}

.dy-brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.dy-portal-message {
    max-width: 780px;
    margin: auto 0;
}

.dy-portal-message p {
    margin: 0 0 20px;
    color: #f49a26;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
}

.dy-portal-message h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.dy-portal-message h1 span {
    display: block;
    white-space: nowrap;
}

.dy-portal-form-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 48px clamp(32px, 7vw, 120px);
}

.dy-portal-form {
    width: min(440px, 100%);
}

.dy-portal-form-logo {
    display: none;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
}

.dy-portal-form h1 {
    margin: 0 0 6px;
    font-size: clamp(36px, 3vw, 50px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.dy-portal-subtitle {
    margin: 0 0 33px;
    color: #81776d;
    font-size: 17px;
}

.dy-portal-form label {
    display: block;
    margin-bottom: 7px;
    color: #312c27;
    font-size: 13px;
    font-weight: 750;
}

.dy-portal-form input[type="text"],
.dy-portal-form input[type="password"] {
    width: 100%;
    height: 50px;
    margin: 0 0 15px;
    padding: 0 14px;
    border: 1px solid #d8d1c9;
    border-radius: 9px;
    background: #fff;
    color: #161310;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.dy-portal-form input[type="text"]:focus,
.dy-portal-form input[type="password"]:focus {
    outline: none;
    border-color: #dc7a00;
    box-shadow: 0 0 0 3px rgba(220, 122, 0, .13);
}

.dy-portal-form .login-remember label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 0 22px;
    font-weight: 500;
}

.dy-portal-form .login-submit {
    margin: 0;
}

.dy-portal-form .login-submit input {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #ec8b0f, #d77400);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(215, 116, 0, .2);
}

.dy-portal-form .dy-login-help {
    margin-top: 20px;
}

@media (max-width: 920px) {
    .dy-portal-login {
        grid-template-columns: 1fr;
    }

    .dy-portal-visual {
        min-height: 390px;
    }

    .dy-portal-message h1 {
        font-size: clamp(38px, 7vw, 56px);
    }

    .dy-portal-form-panel {
        min-height: auto;
        padding: 55px 24px 70px;
    }
}

@media (max-width: 560px) {
    .dy-portal-visual {
        min-height: 330px;
        padding: 24px 20px 34px;
    }

    .dy-portal-brand img {
        width: 48px;
        height: 48px;
    }

    .dy-portal-message p {
        margin-bottom: 13px;
        font-size: 10px;
    }

    .dy-portal-message h1 {
        font-size: clamp(32px, 9vw, 42px);
    }

    .dy-portal-message h1 span {
        white-space: normal;
    }

    .dy-portal-form-panel {
        padding: 42px 20px 62px;
    }

    .dy-portal-form h1 {
        font-size: 36px;
    }
}
