html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #1B365C;
}

.signin-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.signin-card {
    width: 596px;
    max-width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px 48px 36px;
}

.signin-card-content {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signin-header {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.signin-logo {
    width: 300px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.signin-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid #D6D6D6;
}

.signin-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signin-title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #292929;
    margin: 0;
}

.email-field {
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 0 8px 0 4px;
    gap: 8px;
}

.email-field.email-field-invalid {
    border-color: #dc3545;
}

.email-field-prefix {
    width: 28px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C2C2C2;
    font-size: 16px;
    flex-shrink: 0;
}

.email-input {
    border: 0;
    outline: 0;
    box-shadow: none;
    width: 100%;
    height: 40px;
    font-size: 16px;
    line-height: 24px;
    color: #242424;
    padding: 8px;
}

.email-input::placeholder {
    color: #242424;
    opacity: 1;
}

.signin-field-guidance {
    margin-top: -10px;
    color: #666666;
    font-size: 12px;
    line-height: 18px;
}

.signin-field-error {
    margin-top: -12px;
    color: #dc3545;
    font-size: 12px;
    line-height: 18px;
    min-height: 18px;
    display: none;
}

.signin-field-error.is-visible {
    display: block;
}

.signin-submit-button {
    width: 100%;
    height: 42px;
    border: 1px solid #0352B2;
    border-radius: 4px;
    background: #0352B2;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.15px;
    cursor: pointer;
}

.signin-submit-button:hover,
.signin-submit-button:focus {
    background: #02479a;
    border-color: #02479a;
}


.alert {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .signin-card {
        width: 100%;
        max-width: 560px;
        padding: 36px 28px 28px;
    }

    .signin-card-content {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .signin-page {
        align-items: flex-end;
        padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    }

    .signin-card {
        border-radius: 16px 16px 12px 12px;
        padding: 28px 20px 20px;
    }

    .signin-header {
        gap: 20px;
    }

    .signin-logo {
        width: 240px;
        height: 48px;
    }
}

@media (max-width: 400px) {
    .signin-logo {
        width: 200px;
        height: 40px;
    }

    .signin-title {
        font-size: 18px;
        line-height: 26px;
    }
}
