* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #1b3a5c;
    --green-main: #1b3a5c;
    --green-hover: #1b3a5c;
    --green-soft: #e7ecf3;
    --text-dark: #101b28;
    --text-soft: #6b7480;
    --border: #dde3ec;
    --button-disabled: #e0e4ea;
    --button-disabled-text: #98a1ad;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: var(--text-dark);
}

.login-page {
    display: flex;
    width: calc(100% - 30px);
    min-height: calc(100vh - 30px);
    margin: 15px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(16, 27, 40, 0.09);
}

.login-panel {
    width: 40%;
    min-width: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 48px;
    background: #ffffff;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.senda-hero-wrap {
    margin-bottom: 18px;
    text-align: center;
}

.senda-hero {
    display: block;
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.10);
}

.form-group input::placeholder {
    color: #98a1ad;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6b7480;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle:hover,
.password-toggle.is-active {
    color: var(--green-main);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 17px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--green-main);
}

.login-options a {
    color: var(--green-main);
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-button {
    display: block;
    width: 72%;
    height: 42px;
    margin: 0 auto;
    border: 0;
    border-radius: 9px;
    background: var(--button-disabled);
    color: var(--button-disabled-text);
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    box-shadow: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.login-button.is-ready {
    background: var(--green-main);
    color: #ffffff;
    cursor: pointer;
}

.login-button.is-ready:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
}

.authorized-text {
    margin: 16px 0;
    text-align: center;
    font-size: 11px;
    color: #6b7480;
}

.security-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #dde3ec;
    border-radius: 11px;
    background: #eef2f7;
}

.security-icon {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-main);
    font-size: 18px;
}

.security-message strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: var(--green-dark);
}

.security-message p {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-soft);
}

.login-footer {
    margin-top: 13px;
    text-align: center;
    font-size: 10px;
    color: #6b7480;
}

.login-landscape {
    position: relative;
    flex: 1;
    min-height: 100%;
    background-image:
        linear-gradient(
            rgba(16, 27, 40, 0.04),
            rgba(16, 27, 40, 0.14)
        ),
        url("../img/login-landscape.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.estepa-watermark {
    position: absolute;
    top: 34px;
    right: 38px;
    width: 125px;
    padding: 0;
    background: transparent;
}

.estepa-watermark img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.38;
    mix-blend-mode: multiply;
    filter: none;

}

@media (max-height: 820px) and (min-width: 901px) {
    .senda-hero {
        max-width: 340px;
    }

    .senda-hero-wrap {
        margin-bottom: 12px;
    }

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

    .form-group input {
        height: 42px;
    }

    .login-button {
        height: 40px;
    }

    .security-message {
        padding: 10px 12px;
    }

    .authorized-text {
        margin: 12px 0;
    }
}

@media (max-width: 900px) {
    .login-landscape {
        display: none;
    }

    .login-panel {
        width: 100%;
        min-width: 0;
        padding: 26px;
    }

    .login-page {
        width: calc(100% - 20px);
        min-height: calc(100vh - 20px);
        margin: 10px;
    }
}

@media (max-width: 500px) {
    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .login-button {
        width: 100%;
    }
}
